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.
Script for replacing multiple lines
Name: Peggy Date: November 4, 2002 at 04:08:13 Pacific OS: solaris CPU/Ram: not sure
Comment:
I am a beginner of shell scripts. I need help in writing a script for replacing duplicate of multiple lines in a list of files in a directory with some other lines.
For example, I have got some files in a dir named a, b, and c, and in each file there is a paragraph "etc etc etc... and etc" in it, and I want to replace the "etc etc etc... and etc" with "cte cte cte... and cte" for all files a, b, and c.
There is no need for input error checking and it is assumed that the list of files is known in advance and that there will be the exact same paragraph in every file in that list.
Summary: Please help me in writing a script I have to write a script for replacing a line in a file For Eg. 1)The file name is testfile 2) The testfile contains about 100 lines 3) I want to r...
Summary: Greetings! Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities for Windows, but none for UNIX. I have 10,000 fil...
Summary: Sorry for the confusion. Below, I recoded the second command line, and I divided into multiple lines with line continuation for readability. csplit -ks -f ${DWH_OUT}/other/a1prefix ${DWH_OUT}/other/a1...