Search Results

Search: Posts Made By: Steven77
2,970
Posted By Steven77
Hello Franklin52, Many Thanks!!!!
Hello Franklin52,
Many Thanks!!!!
2,970
Posted By Steven77
Hello Franklin52, It worked perfectly! Thanks a...
Hello Franklin52,
It worked perfectly! Thanks a lot!
btw, one small doubt
what is the difference between

awk '/RC No/{close(f);f=$4}{print >> f}' test.txt
and
awk '/^RC...
2,970
Posted By Steven77
Hello Franklin52, Thanks for your help. Now...
Hello Franklin52,
Thanks for your help. Now with new command last line i.e "Total RC" is not coming in any files.
2,970
Posted By Steven77
Below are the realistic contect of my original...
Below are the realistic contect of my original file:

RC No./Name : 0001 /Kosba office branch Dhapa Advertised Match PCL.
Report Name : SEZ223 DAILY EXPENSE...
2,970
Posted By Steven77
Hello Rudic, Yes, file has "RC No" in very...
Hello Rudic,
Yes, file has "RC No" in very first line of the file.
2,970
Posted By Steven77
Hello Fraklin52, Still getting same error :( ...
Hello Fraklin52,
Still getting same error :(
awk '/^RC No/{close(f);f=$NF}{print >> f}' test.txt
awk: (FILENAME=test.txt FNR=1) fatal: expression for `>>' redirection has null string value
2,970
Posted By Steven77
Hello Rudic, I'm getting below error after ...
Hello Rudic,
I'm getting below error after following the suggestion
awk '/^RC No/{close(f);f=$4}{print >> f}' test.txt
awk: (FILENAME=test.txt FNR=1) fatal: expression for `>>' redirection has...
2,970
Posted By Steven77
Hello Franklin52 & Bartus11, Thanks a lot ,...
Hello Franklin52 & Bartus11,
Thanks a lot , your solution has worked perfectly.
Now I have one small problem with another file of similar patern, in my large file in place of "TD:" if I have "RC...
2,970
Posted By Steven77
Multiple File creation from Single file
I've one large file with below content
TD: 0001 xxxx
thnb
..........
TD: 0001 yyyy
abcd
.........
.......

TD: 0002 xxyy
efgh....
3,287
Posted By Steven77
Hello Soliton, Perfect, it worked! :b: ...
Hello Soliton,
Perfect, it worked! :b:

Thanks!
3,287
Posted By Steven77
Hello Alister, I tried searching, but...
Hello Alister,
I tried searching, but everywhere I found solution 'not including the delimited text'
but I want to include the 'As of ' line at end of each file.
Is there anyway this can be done?...
3,287
Posted By Steven77
Hello Sea, Thank you for your prompt reply. ...
Hello Sea,
Thank you for your prompt reply.
Is there anyway it can be done using awk?
Original file is very big.

Thanks.
3,287
Posted By Steven77
[Solved] How to split a file with delimited string?
I have a unix file text.txt with below content
aaaaa
bbbbbbb
cccccccccc
As of 2013
ddddddddd
eeeeeeeeee
eeeeeeeee
fffffffff
As of 2014
gggggggggggg
hhhhhhhhh
iiiiiiiiiiiiiiii
As of 2016...
Showing results 1 to 13 of 13

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