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.
putting strings on a file
Name: Irene Date: August 20, 2003 at 03:05:59 Pacific OS: Win 2000 CPU/Ram: P4/256 MB
Comment:
Hi all, I think this is very easy for you :)...
I should write on file1 lines like:
var:resultoftail
but I cannot put everything on the same line by using this command in the script:
echo $var":" >> file1|tail -1 file2 >> file1
Nor if I use \\n. How can I do to 'build' every single line ?!
Summary: If a file in unix has the string "123ABC" in it on 50 different lines and I only want to replace the first 25 of them with "xxxxxx", how would I do that with a unix command?? Thanks for any help or in...
Summary: Hello, How can I do a sed script which modify a file himself ? I try : sed "s/dirty/clean/" myfile > myfile But after that, myfile is empty... How can I do WITHOUT a temporary file. Thanx ! M ...