Issue
I am using BSD grep! (Different from UNIX grep) grep -e '22T1[2-4]' nagoya_all.csv -> nagoya12_14.csv
When I execute this command, nagoya12_14.csv
is successfully created. However, on terminal is doesn't prompt me for a new command.
Why does this happen? How can i check if this command is still running?
Solution
Take out the -
in front the redirect sign >
and you should be good. When you have -
at the end of a grep command, it will try to read from stdin, which waits for user input.
Answered By - Rico Chen