Re:bash script Q

2002-04-05 Thread David Starks-Browning
Unless there is something Cygwin-specific to your question here, I would point out that this is off-topic for this list, and ask you to take your shell programming questions elsewhere. Thanks, David On Friday 5 Apr 02, Gupta, Sanjay writes: > I assuming that I am reading all files from /tmp/ dir

Re:bash script Q

2002-04-05 Thread Gupta, Sanjay
I assuming that I am reading all files from /tmp/ directory for File in /tmp/* do ## Check, if it is a File if [ -f $File ] ; then ## Yes, it is a file ## Get the basename and cut two characters TWOBYTES=`basename $File | cut -b1,2` if [ "$TWOBYTES" = "%!" ] ; then