Search Results

Search: Posts Made By: ejazsyed
2,354
Posted By durden_tyler
$ $ $ cat input.txt ...
$
$
$ cat input.txt
****************************************************
* *
* THE FOLLOWING IS THE SOLICITOR MAIL FILE *
* *
****************************************************
1
THE...
2,354
Posted By ahamed101
Try this... code purely based on your input...
Try this... code purely based on your input file...

awk '/CUSIP/{gsub(/[a-z]|%.*/,"",$7);_1=$5"|"$7}/^--/{f=1;next}{if(f==1)print $0 _1}' input_file
--ahamed
2,354
Posted By Corona688
$ cat input.awk BEGIN { # Split 'lines' on...
$ cat input.awk
BEGIN { # Split 'lines' on --------------
RS="--------------------------------"
# Split 'columns' on newline
FS="\n"
}

NR==1 { # Third-last line...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy