| | |
Text File Editing Help Required.
![]() |
•
•
Join Date: Jan 2007
Posts: 28
Reputation:
Solved Threads: 0
Hello Dears,
I have hundereds of text
files and every file have thousand of
lines and there is only one word at each
line. My problem is that I want to add a
word with every word in files.
Example:
files contains a words
hello
dani
google
yahoo
Now I want to add a word with every word
like that:
hellodear
daniweb
googleisbest
yahoodotherest
if your understad my problem plz reply me
how can I edit all of my files bcoz
manually editing will take very long
times, bcoz there is about millions words
in all files.
Thanks in Advance.
I have hundereds of text
files and every file have thousand of
lines and there is only one word at each
line. My problem is that I want to add a
word with every word in files.
Example:
files contains a words
hello
dani
yahoo
Now I want to add a word with every word
like that:
hellodear
daniweb
googleisbest
yahoodotherest
if your understad my problem plz reply me
how can I edit all of my files bcoz
manually editing will take very long
times, bcoz there is about millions words
in all files.
Thanks in Advance.
•
•
Join Date: Jan 2007
Posts: 28
Reputation:
Solved Threads: 0
Thanks for reply, actually, I have thousands of text files and every file contains thousands of lines and there is only one word on each line. Now I want to add/attach one more word with every signle word in all files. For example there is a word in a file "dani" I want to convert it to "daniweb". So, like this I want to edit all my files.
It would be much appreciated if you make a programme/script for this solution.
Thanks & Regards.
It would be much appreciated if you make a programme/script for this solution.
Thanks & Regards.
How is it supposed to know which word to add?
Does it always add the same word when it finds a particular word? Or is the same word always added in the same place in the file?
Are the words to be added add in a list?
If you always need to add the same words in the same places in the file, you might be able to trick Excel into doing the job for you.
Does it always add the same word when it finds a particular word? Or is the same word always added in the same place in the file?
Are the words to be added add in a list?
If you always need to add the same words in the same places in the file, you might be able to trick Excel into doing the job for you.
Daylight-saving time uses more gasoline
•
•
Join Date: Jan 2007
Posts: 28
Reputation:
Solved Threads: 0
I already tried doing it with Excel, but I failed to do that, and Yes there is same single word which I want to add with every word in files.
Any other Trick ? Or Plz you try it to do with Excel or any other utility.
Any other Trick ? Or Plz you try it to do with Excel or any other utility.
•
•
Join Date: Apr 2006
Posts: 148
Reputation:
Solved Threads: 39
if all you need is to add a specific word to the end of each line (which contains one word ), then a batch file will suffice. An example
This will add the word "web" to the current lines
output:
If you need different specific words for each line, then its a different story.
@echo off for /F %%i in (file.txt) do echo %%iweb
output:
C:\test>test.bat helloweb daniweb googleweb yahooweb
If you need different specific words for each line, then its a different story.
•
•
Join Date: Apr 2006
Posts: 148
Reputation:
Solved Threads: 39
•
•
•
•
I get the error...
%%i was unexpected at this time
For ex, on command line
C:\test>@echo off for /F %i in (file.txt) do echo %iweb helloweb daniweb googleweb yahooweb
![]() |
Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: boot problem
- Next Thread: Temporary Internet Files
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 2007 2010 activedirectory alaris android application appstore arm auto black blue book cellphones chinese collaboration combofix computer computerfreezes crash deployment desktop desktops dns domain dotnetnuke drive error errors features folder fontmanagers fonts format framework gadgets intel interoperability killprocess laptop laptops latitude lcd linux load login mac markshuttleworth microsoft mobile monitor netbooks novell nvidia opensource operatingsystems osinstallationproblem osx outlook partition patch product proxy raid rds remotedesktop remotedesktopconnection replacingraiddrive screen server. simplifiedchinese sp1 sp3 studios ubuntu unreadable update upgrade usb verizon videodrivers videogames virtual virus vista visual vulnerability wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp






