Please RTFM on Unix grep.
grep pattern file
This searches the file for a pattern.
To check for the presence of a file, use perl's "-e" function. Read "perldoc perlfunc".
...each is assigned his own private delusion but he cannot see the baggage on his own back.
In reply to Re: Check whether a file exists
by NetWallah
in thread Check whether a file exists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |