Search Results

Search: Posts Made By: f0usk4s
5,993
Posted By RavinderSingh13
Could you please try followign and let me know. ...
Could you please try followign and let me know.


awk -vi=1122 '!/\<RECORD\>/ && !/\<\/RECORD\>/ && !/\<element4\>/ && !/\<element5\>/ && !/\<element6\>/ {f=f"\n"$0} /\<\/RECORD\>/ {print f >...
5,993
Posted By RavinderSingh13
Hello, Could you please try following. ...
Hello,

Could you please try following.


awk '!/\<RECORD\>/ && !/\<\/RECORD\>/ && !/\<element4\>/ && !/\<element5\>/ && !/\<element6\>/ {f=f"\n"$0} /\<\/RECORD\>/ {print f >...
5,993
Posted By Klashxx
Give this a try: awk '/<\/RECORD/{ ...
Give this a try:
awk '/<\/RECORD/{
print raw""$0 > name".xml"
name=""
raw=""
next}
...
5,993
Posted By RavinderSingh13
Hello, Could you please use the following...
Hello,

Could you please use the following code for same.


awk '!/\<RECORD\>/ && !/\<\/RECORD\>/ {f=f"\n"$0} /\<\/RECORD\>/ {print f > "Record"++i".txt";f=""}' check_records


It will...
Showing results 1 to 4 of 4

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