| | |
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: 40
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: 40
•
•
•
•
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 64bit 2007 2010 a.exe activedirectory address android appstore audio automatically black blue bsod bulletin canonical chinese chkdsk codeplex combofix cursor deployment deployments desktop dns drive dual eartlink error explorer fax features fontmanagers format framework freeze hardware home internet interoperability laptop laptops lcd linux login mac markshuttleworth memory microsoft monitor motionle1600 netbooks novell nvidia open opensource operatingsystems options oracle osinstallationproblem osx palm partition printer program proxy reformat remotedesktop repair replacingraiddrive retail retrieve screen security sharepoint simplifiedchinese sitetositevpn slowperformance sp3 spyware studios technology ubuntu uninstall update upgrade videodrivers videogames virus vista visual vpn win win32/heur windows windows7 windowsxp windowsxpnotstartingup. xp xpde






