Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Multiple Lines to Multiple Files 1

Status
Not open for further replies.

dayinthelife

IS-IT--Management
Jun 4, 2008
1
US
Hello,

I have three lines I need to add to hundreds of files. The files are all in the same format and contain the same information. I want to add the same information to the files.

The new lines of information are similar. Here is an example of the three lines:

line1:
line2 = text1
line3 = text2

They all should be on line 34, 35 and 36. Line 2 and 3 are right justified by 3 spaces.

The files all start with the same name separated by a period followed by some random number.

name1.number1

If someone can help me create a script, I would be very much appreciative.

Thank you,

dayinthelife
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top