Sure:
ps -ef | grep bar | { grep -v grep || true; }
Or even:
ps -ef | grep bar | grep -v grep | cat
More Related Contents:
- how does the bash command "grep -v ":0"" work
- How can I manipulate text in bash? [closed]
- How can I pipe stderr, and not stdout?
- How to merge every two lines into one from the command line?
- Fast way of finding lines in one file that are not in another?
- Capturing Groups From a Grep RegEx
- How to get the part of a file after the first line that matches a regular expression
- Is there an easy way to pass a “raw” string to grep?
- How to process each output line in a loop?
- Checking if output of a command contains a certain string in a shell script
- Colorized grep — viewing the entire file with highlighted matches
- How to check if a file contains a specific string using Bash
- Piping tail output though grep twice
- Check if all of multiple strings or regexes exist in a file
- Grepping a huge file (80GB) any way to speed it up?
- Fastest possible grep
- Waiting for background processes to finish before exiting script
- How to give a pattern for new line in grep?
- Grep output with multiple Colors?
- Using grep to search for hex strings in a file
- How to strip out all of the links of an HTML file in Bash or grep or batch and store them in a text file
- How to delete rows from a csv file based on a list values from another file?
- How to grep for case insensitive string in a file?
- Reading quoted/escaped arguments correctly from a string
- How can I remove the extension of a filename in a shell script?
- How does Ctrl-C terminate a child process?
- Specify other flags in awk script header
- Concatenating multiple text files into a single file in Bash
- Forking / Multi-Threaded Processes | Bash
- Convert line endings [duplicate]