mass re-compile

Richard D. Williams richard at appgrp.net
Tue Apr 1 10:00:44 PDT 2014


On 4/1/2014 10:21 AM, Kenneth Brody wrote:
> On 4/1/2014 10:05 AM, Richard D. Williams wrote:
> [...]
>> # cd /appl/filepro
>> # for file in `ls -1`;  do;  /appl/fp/rcabe $file -ca; done [enter]
>
> What's the purpose in using "`ls -1`" rather than "*"?
>
It's just how I do it.

The "ls *", would probably produce the same list.
The "*" is not needed.  Just "ls" would give you a list.

The "-1" makes sure I get a single column of file names in my response.
Again, its just a habit.

Richard


P.S. Here is  a neat little script that helped me tremendously.

/usr/local/bin/SEARCH_IT

rm -f rdw.txt
for file in `ls -1 $1`; do echo $file >> rdw.txt; cat $file | grep $2 >> 
rdw.txt
; done
vi rdw.txt

use:

cd /appl/filepro/filename
SEARCH_IT "prc.*"  snipet

enjoy


More information about the Filepro-list mailing list