Search Results

Search: Posts Made By: Chubler_XL
1,202
Posted By Chubler_XL
Here is a little sed script thats a lot more...
Here is a little sed script thats a lot more robust; it can even deal with input like this:


Identifier ( Field1a,Field1b, Field1c; Field2a, Field2b;
Field3a; ..... )


sed...
1,202
Posted By Chubler_XL
--Assumption here is fields in this file aren't...
--Assumption here is fields in this file aren't actually named Field1a, Field2a, etc. but have real names.

awk -F'[;,]' '/^\)/{p=0}p==1{sub(/^[( ]*/,"",$1); print $1}/^Identifier/{p=1}' infile
...
Showing results 1 to 2 of 2

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