Search Results

Search: Posts Made By: amitdaf
3,695
Posted By amitdaf
Hello Thanks for the code.. In the last file,...
Hello
Thanks for the code..
In the last file, 2 FTAIL records are coming.

---------- Post updated 12-09-16 at 05:29 AM ---------- Previous update was 12-08-16 at 05:53 AM ----------

There are...
3,695
Posted By amitdaf
Hello I tried below code awk '/^FHEAD/{h=$0} ...
Hello
I tried below code
awk '/^FHEAD/{h=$0}
/^THEAD/{close("RTLOG_test"f);f++}{print h >"RTLOG_test"f; print $0 >> "RTLOG_test"f}' RTLOG_5019_05122016110959.DAT
But it is not giving...
3,695
Posted By amitdaf
Split file into multiple files using awk
I have following file:

FHEAD0000000001RTLG20161205110959201612055019
THEAD......
TCUST.....
TITEM....
TTEND...
TTAIL...
THEAD......
TCUST.....
TITEM....
TITEM.....
TTEND...
TTAIL......
Showing results 1 to 3 of 3

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