This is my headerHJKLName00014200012000000600424618201after head 201 I am looking for 382 space.total wc will be 421 then
can you tell me how can I accomplish this
we are performing some more actions in script, which is working fine..but this part I need help.please suggest where changes need to be made. I think in printf statement
I checked there is no 0 after 201 and why its not printing newfile as well
I'm not sure about the extra 0
BTW the code does not print newfile It is just writing or redirecting the output to file: newfile. Check the directory you are running this code and you will find a file: newfile
I current directory no file is generating
see i am putting output here ---------- Post updated at 09:24 AM ---------- Previous update was at 09:17 AM ----------
My Bad..oops!! i was missing a line..got rid of Zero n see new file.
checking if I am getting correct spaces
---------- Post updated at 12:03 PM ---------- Previous update was at 09:24 AM ----------
Quote:
Originally Posted by bipinajith
My bad, the solution I suggested for extra spaces will not work.
You can apply below modification:
I hope this helps.
Thanks a TON..
got it correct..
what I was wondering is, say if I have many Entries with name COOLTV to delete with its immediate line..
then how can we use for loop in awk. and it should ask subtract that value from header.
say we are deleting 4 record with COOLTV. the each will have different value , how we can add all values and subtract from header
Hi, suppose I have the following data:
albert music=top40 age=20
bob music=punk rock age=25
candy music=r n b age=22
dave music=mozart or bach only age=30
I want to extract and manipulate the music column but it's got spaces in it. How can I substitute the space with an underscore... (2 Replies)
child_amt=$amount
prev_line="$prev_line $child_amt"
i am getting the result like this
21234567890001343 000001004OLFXXX029100020091112 0000060
but i want 8 spaces between the eg:
21234567890001343 000001004OLFXXX029100020091112 0000060
how can i do this in .ksh (1 Reply)
Hi All,
I have a line like this
" field1;field2;field3 " (single space after and before double quotes).
Now i have to remove these single space . Kindly help me.
Thanks in advance (2 Replies)
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Hi,
I need a help in deleting extra spaces in a text.
I have a huge file, a part of it is :-
3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.com Message Text : The Oracle session with the PID 1103 has a CPU time ... (6 Replies)
Is there any command to add spaces to a lline....say i need 50 spaces between the data like
"aaabbbccc dddeeefff"
or may be like this
"aaaabbbbbbcccccdddddeeeffff "
your help is appreciated. (4 Replies)
Hi Friends,
Can any one help with this issue:
How to trim spaces for each line at the end,
Like I have a file in this format.
EMP1 SMITH 46373 5 STREET HOWARD 74636
EMP2 JONES 5454 { these are spaces ........}
EMP3 SMITH 46373 5 STREET HOWARD 74636
EMP4 JON 2554 { these are... (1 Reply)
hi i have file having following contain
2~%%~2~%%~7~%%~1~%%~none~%%~XYZ_MOV_HDR_REC~%%~1~%%~17_REC_ID == "H"
2~%%~2~%%~8~%%~2~%%~none~%%~XYZ_MOV_EXCL~%%~2~%%~20_UPC<=99999999
see the last column of first line having spaces i have a script
cat rec_iden_file
for i_line in `cat... (2 Replies)