Hi,
I have file generated in HP-UNIX environment (for Example) with the line feed (i.e $):
a$
b$
C$
Now, I need to append CTRL-M character at the end of each line, but the last line of the file should not have both CTRL-M and Line Feed (i.e ^M and $). The file should look like:
a^M$
b^M$... (2 Replies)
Hi All,
I am trying to get the spaces in the below table to be fill up with a character " - ". For eg, coordinates 0202 is a space but i would want to fill up with " - ". Can anybody help ?
Input:
04 D H ... (15 Replies)
Hi everyon,
I am trying to search for a pattern in a file and add "//" to the begining of the file.
lets say i want to comment out a line from my codes. the line that should be commented out contains the word "reset". i need to search for the word "reset" and comment out that specific line. is... (5 Replies)
I used following to add * at the end of the line in file1.
It adds * at the end but has a space before it for some lines but some other lines it adds exactly after the last character.
How do I take out the space ?
sed 's/$/*/' file1 > file2
example:
contents of file1 :
... (2 Replies)
Hi,
I cant seem to figure out how I add a character to an existing one. Heres my problem.
So I have a line that looks like this:
>56
584848392394958586858484849393
What I want to do is add Num in front of the 56. So basically I want to recognize the > and add Num in front of the... (6 Replies)
HI all
i have this script :
#!/bin/bash
sort /usr/tmp/"REPORT"$1 -o \
/usr/tmp/"SREPORT"$1 -k 1,7 -S 150
end of script
now i'm doing this command :
ls -lsgt *REPORT*
4 -rw-r--r-- 300 Sep 16 REPORT54784
4 -rw-r--r-- 301 Sep 16 SREPORT54784
as you can see the sorted file... (5 Replies)
dears
i have the data below, i want a command ( i think it should be sed) that add a space after the seconds as below :
Jun 24 22:28:18966568406148@
Jun 24 05:47:35966555747744@
Jun 24 05:47:53966560825239@
Jun 24 06:07:52966541147164@
Jun 24 15:49:55966566478883@
thanks... (5 Replies)
Hi All,
i am taking end of records using tail command got the out is "END OF FILE. ROW COUNT: 10"
and record count in the file is 3. while append the both data into test2.txt file,it's append like
END OF FILE. ROW COUNT: 108
my output should be in the test2.txt file
END OF FILE. ROW... (9 Replies)
Need to add end of line character to last record in a fixed width file.
When i take the record length of each line, for all the records it gives example like 200 except the last line as 199.
Due to this my other script fails.
Please help me on this. (4 Replies)