Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
adding text to the end of every 2nd
Name: karl1 Date: December 14, 2006 at 06:46:14 Pacific OS: cygwin CPU/Ram: er Product: erw
Comment:
hey, how would i go about adding text to the end of every 2nd line, then appending the second line to the first? any help would be appreciated
Name: karl1 Date: December 14, 2006 at 07:17:41 Pacific
Reply:
excellent thanks for that
0
Response Number 3
Name: karl1 Date: December 14, 2006 at 07:26:41 Pacific
Reply:
just 1 more thing, i have 2 instances of text ".dic>" on each line, i just need to substitute the last instance of this for "copy.dic" i have this so far
sed 's/dic>/copy.dic/' filename
but i dont know how to get the last instance on the line please help
0
Response Number 4
Name: rais Date: December 14, 2006 at 08:06:05 Pacific
Reply:
sed s/"dic>"/DDDD/ | sed s/"dic>"// | sed s/DDDD/"dic>"
Summary: Hi, How do I append the filename to the end of every rows in a text file? my filename is ABC exiting lines CUPD|0|20205|FALSE|FALSE|International CUPD|1|20206|FALSE|FALSE|International CUPD|2|20207|FA...
Summary: Why do you have to use sed or awk? You said it needs to be appended to the end of the file. Why not just use: print "<string value>" >> <filename> ...
Summary: My site has set-up a SAMBA share on an HPUX11 system which is visible form our NT4 workstations. We want to use it to upload files into our configuration management tool PVCS. I can place a file into...