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 IamaSherpa 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: *

  1. Meher1

    merge 2 files into third

    Thanks Ygor for the quick reply. Sorry, I did not understand the solution. I copied my test files in to a nad b files. I tried executing the above code on command line but got this error. ********************** "}awk: There is a regular expression error. ?, *, or...
  2. 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...
  3. 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...
  4. 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;)...
  5. Meher1

    parse a single line?

    Thanks caKiwi! That was exactly what I wanted!
  6. 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...
  7. 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