a free useful script

Richard D. Williams richard at appgrp.net
Mon Dec 15 10:51:36 PST 2014


To All:

You may already have something like this, but I thought I would share.
It is the holiday season.

Merry Christmas/Happy Hanukkah to all,

Richard D. Williams

Required: all tables must be ascii format.
If you need to convert all tables in a file, just do this:
/appl/fp/rcabe filename -ca

# cat SEARCH_IT
rm -f /tmp/$LOGNAME.txt
for file in `ls -1 $1`; do if grep -q "$2" "$file";
  then echo $file >> /tmp/$LOGNAME.txt; cat $file | grep -n "$2" >> 
/tmp/$LOGNAME
.txt; echo "" >> /tmp/$LOGNAME.txt; fi; done;
vi /tmp/$LOGNAME.txt

i.e.
[/appl/filepro/r_process_office]# SEARCH_IT "prc.*" "(268)"

yields:
prc.enter_txoag_job
67:::P_PROC(8)=@TD+"30";P_PROC(9)=@TM;P_PROC(268)=@TD+"0";P_PROC(320)="I":

prc.pcp2pcp_owe
41:::d(8,yymd)=P_PROC(268)+"0":
58::P_PROC(268) ge "05/03/04":w="P_CHG at a":
121::P_CLT(116) eq ja and P_PROC(268) ge P_CLT(@CD):amf_client="Y":
133::P_PROC(268) ge "05/03/04":w="P_CHG at a":
192:::d(8,yymd)=franinv(268)+"0":
205::franinv(268) ge "05/03/04":w="P_CHG at a":
206::franinv(268) lt "05/03/04":w="P_CHG":
214::not amf and P_CLT(116) ne "" and franinv(268) ge P_CLT(@CD) and 
franinv(214) eq "":jl(9,.)=jl+(famt(n)-(famt(n)-am)):
219:::hg(8,yymd)=franinv(268)+"0":

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20141215/d5f77a9c/attachment.html>


More information about the Filepro-list mailing list