Re: cygwin bash script suddenly can't find ls, grep

2014-10-15 Thread Robert Klemme
On Tue, Oct 14, 2014 at 10:54 PM, LMH wrote: > Thorsten Kampe wrote: >> * LMH (Sat, 11 Oct 2014 20:30:07 -0400) >>> Good Lord, I guess I wasn't thinking very clearly trying to use >>> PATH as >>> a variable for something else. I changed to, >>> >>> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal

Re: cygwin bash script suddenly can't find ls, grep

2014-10-14 Thread LMH
Thorsten Kampe wrote: > * LMH (Sat, 11 Oct 2014 20:30:07 -0400) >> Good Lord, I guess I wasn't thinking very clearly trying to use >> PATH as >> a variable for something else. I changed to, >> >> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) >> echo $FILE_DIR >> >> FILE_L

Re: cygwin bash script suddenly can't find ls, grep

2014-10-14 Thread LMH
Achim Gratz wrote: > LMH writes: >> Good Lord, I guess I wasn't thinking very clearly trying to use PATH as >> a variable for something else. I changed to, >> >> FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) >> echo $FILE_DIR >> >> FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )

Re: cygwin bash script suddenly can't find ls, grep

2014-10-12 Thread Thorsten Kampe
* LMH (Sat, 11 Oct 2014 20:30:07 -0400) > Good Lord, I guess I wasn't thinking very clearly trying to use > PATH as > a variable for something else. I changed to, > > FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) > echo $FILE_DIR > > FILE_LIST=($(ls $FILE_DIR'/'*'out.tx

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread Achim Gratz
LMH writes: > Good Lord, I guess I wasn't thinking very clearly trying to use PATH as > a variable for something else. I changed to, > > FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) > echo $FILE_DIR > > FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )) > echo ${FILE_LIST[@]} > >

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread LMH
Ken Brown wrote: > On 10/11/2014 8:04 PM, LMH wrote: >> Hello, >> >> I have been working on a bash script and suddenly I started getting an >> error that ls could not be found, >> >> ./remove_rows.sh: line 27: ls: command not found >> >> I can run ls from the command line just fine. There is also

Re: cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread Ken Brown
On 10/11/2014 8:04 PM, LMH wrote: Hello, I have been working on a bash script and suddenly I started getting an error that ls could not be found, ./remove_rows.sh: line 27: ls: command not found I can run ls from the command line just fine. There is also an ls command before line 27 that runs

cygwin bash script suddenly can't find ls, grep

2014-10-11 Thread LMH
Hello, I have been working on a bash script and suddenly I started getting an error that ls could not be found, ./remove_rows.sh: line 27: ls: command not found I can run ls from the command line just fine. There is also an ls command before line 27 that runs fine. This is the part of the script