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.
Locating and appending text
Name: lamos Date: April 7, 2004 at 07:35:45 Pacific OS: Linux CPU/Ram: pent3/256
Comment:
Hi folks,
Can someone help me. I'd like to locate a character (@) in a text file and append a string of characters like "< yyyyyyy...y". For example in both sed and awk:
Summary: Here is my solution, with caveats at the end. This code works on HP-UX in the bourne or korn shell. I tested with an actual download of the web file, and a small tokenized file to represent your big f...
Summary: Hi: Your question is very general so I'm taking thefile line count dividing it by 2 and appending "my text" to newfile after counting that many lines: #!/bin/bash cnt=$(wc -l < thefile) cnt=$((cn...
Summary: Hi, I'm new to Shell scripting and I really need to code a tiny script to do the following: 1) Connect via FTP to an FTP server; 2) Download the LIST of all the files in the default folder; 3) FOR EAC...