mass re-compile

Kenneth Brody kenbrody at spamcop.net
Tue Apr 1 10:29:54 PDT 2014


On 4/1/2014 1:00 PM, Richard D. Williams wrote:
> 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.

I didn't mean "ls *" rather than "ls -1".  I meant just "*".  No "ls" 
needed, just:

     for file in * ; do something ; done

>
> 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
>

-- 
Kenneth Brody


More information about the Filepro-list mailing list