This is for GNU grep. I vaguely remember having some minor portability issue back in the 1990s related to an -H option, but my memory is unclear whether that was with grep or find. (I was porting a 1500 line shell/AWK/SQL script I wrote for Solaris 2.4 to HP-UX and Windows NT, with the -H thingy the only fix needed to get it running on HP-UX (and no fix needed to make it run on Windows NT))grep -H "" `ls my_input_dir` | sed -s s/:/ /'
In reply to Re: How to do this with shell scripting and perl one-line?
by JavaFan
in thread How to do this with shell scripting and perl one-line?
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |