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.
improving my
Name: amir Date: December 4, 2003 at 07:44:08 Pacific OS: unix- solaris CPU/Ram: sun ultra10
Comment:
Hi all,
I have a script that scan files, find old templet and replace it with new one.
1 #!/bin/ksh 2 # Loop through every file like this 3 for file in file_name 4 do 5 cat $file | sed "s/old_templet/new_templet/g" > $file.new 6 #do a global searce and replace and put the results 7 mv $file.new $file 8 #rename $file.new to original name of file 9 done
1. How can i take the 3 parameters (file name, new templet and old templet) from the command row ? 2. How can add option to add big new templet (that include few rows) instead the old templet.
Summary: Hello all I found the command I was looking for here is what I used sort -uk 1,1 JDE_JobList1.txt > JDE_JobList.txt Thanks for all the help William if you can find other improvement to my script pl...
Summary: Hi,wollie I'm from China,I working in Hangzhou,Maybe,my writing english is not very well.but,I will improve my English Writing;English is an important language, because it is the most widely used in t...
Summary: Hi, One of my Job is running very slow. We are trying to find different ways to optimize the process. 1)To improve the program itself. We are working on it. 2) Optimize the OS setting. My process is h...