Search Results

Search: Posts Made By: dancor97
3,428
Posted By dancor97
I tried pipe to awk -F\| '{print $1|$2|$8}'. The...
I tried pipe to awk -F\| '{print $1|$2|$8}'. The result is NOT <JOB|NAME=XXXXXX|</JOB.

The initial sed output shows like this which is OK and I can import into excel:...
3,428
Posted By dancor97
Script to convert rows to 1 record with delimter
Thanks to JOEYG.... The sed..tr... solution worked great with the perfect output format.

Another output I would like is to get using the same input data, is to create a record consisting of only...
3,428
Posted By dancor97
Gives me a syntax error. Tried runing using 'awk...
Gives me a syntax error. Tried runing using 'awk -f ' getting same error.

awk '/JOB/ { JOB = !JOB} JOB {printf $0"|" ; next} 1' testdata > newfile
awk: syntax error near line 1
awk: illegal...
3,428
Posted By dancor97
Script to convert rows to 1 record with delimter
I have a data file as follows. The 1st line of record starts with "<JOB" and the last line of record ends with "</JOB". There are multiple rows (62 -70) within <JOB and </JOB and it varies. There...
Showing results 1 to 4 of 4

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