Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Meher1
  • Content: Threads
  • Order by date
  1. Meher1

    merge 2 files into third

    Hi, I have two files with the same format. Each of these files are | delimited and have a record identifier. 1 header, 2 detail, 3 trailer. In the out put file: I need to have the header of file a, merge the detail records of two files and sum up the corresponding trailer values of these two...
  2. Meher1

    Help with passing variables

    Hi. I was wondering if I could fix the problem I have with my previous message in a different way. I'm sorry for multiple threads, I'm a newbie to both unix and awk and do not even have a awk book to refer. I'll repeat the whole issue again...
  3. Meher1

    Need Help with printing

    Here is my script. ******************************************************** test.ksh for i in $dir do test.awk i > $dir/(basename i)_C done ********** test1.awk BEGIN{OFS=FS=&quot;*&quot;} /QR/{ for (j=1;j<=NF-7;j++) { if ($j ~ /QR/ && $(j+1)==&quot;XA&quot;)...
  4. Meher1

    parse a single line?

    Hi I'm very new to unix and awk. here is what I want. For ex: In input file FILE, * is the delimiter If the file is : ABC*12*avxcgju932*00**123*12345678iouyt*18*123nhtrkw...
  5. Meher1

    Looping through all files in a directory

    Hi, I'm very new to unix shell scripting. Need some help. I have to loop through a few files in a directory. for i in $files do awk -f test.awk $i done If my directory is /X how do I assign files to? files= ? TIA

Part and Inventory Search

Back
Top