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.
Appending Text To Multiple Files
Name: Borneo Date: March 7, 2003 at 23:42:26 Pacific OS: MS-DOS Mode Multiple Vers CPU/Ram: K6-2 450mhz / 384mb
Comment:
Howdy...
What I am trying to do I belive is rather simple. I have several files called talk#.# and I need to append the same text string and/or text file to each of them.
The format of the file talk#.# : Where the first '#' is the channel number which exists in a range of 0-9999 where the second '#' is the user number which exist in a range from 1-999 ... The first number '#' isn't really important but I need to be able to change the script to allowe anything in the feild. Its the last number '#' thats the problem. I need to be able to append every file that is named (i.e) talk0.*
The problem with this is I never know which users will be using the notification system and I have no way to pass there numbers to a list for this system.
Is there anyway to append a string of text and/or a text file to every file in a dir with a simaler name? It seems I did this years ago but I have tried everything I can think of and I still can't make it work.
Any ideas or suggestions would be greatly appreciated. My thanks any advance for any help that can be offered.
Summary: Is there a way to use FIND to locate text in multiple files *without* typing each individual file name? I have tried redirecting DIR output and some other things and can't figure it out. Thanks....
Summary: You can "copy con file.txt" or "echo text > file.txt" or "type file.txt > file1.txt" or "echo text >> file.txt" or "type file.txt >> file1.txt". The latter appends the text to the end of file.txt. The...
Summary: Francis: I got a copy of REPL.EXE. How does it work? World Library: No matter how I enter the original text, when I redirect new text to the file, it's on a new line. Please send me the program that w...