Re: test the existence of a file or a directory

2003-08-06 Thread $Bill Luebkert
Chien-Lung Wu wrote: Hi, In the bash, I can test a file or a directory by following: if [ ! (-f a_filename)]; then do_something_for_this_file fi if [ ! (-d a_dirname)]; then do_something_for_this_dir fi How can I do the

Re: test the existence of a file or a directory

2003-08-05 Thread Glenn Linderman
On approximately 8/5/2003 1:56 PM, came the following characters from the keyboard of Chien-Lung Wu: Hi, In the bash, I can test a file or a directory by following: if [ ! (-f a_filename)]; then do_something_for_this_file fi if [ ! (-d a_dirname)]; then