in reply to Check whether a file exists
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.
|
|---|