|Hi guys, I really need help to mass edit text files. More than 5000+ .txt need to edit. Here is description:|
1) Put the filename inside txt files as the first line.
For example, my file name: Data-presentation-on-march-2012.txt
Copy that filename and remove the “-”, and make it the first title of the body of my .txt file
So, it will become:
Data presentation on march 2012.
The .txt contents data which is “bla bla bla bla”
So inside my .txt should become;
Data presentation on march 2012
bla bla bla bla
*contain paragraph like that.
Don’t make it it Data presentation on march 2012. bla bla bla bla.
2) Please make it possible for me to add “?” at the end of the title. This is because some of .txt files contains How-To-Create-Bla-Bla.txt
I put these type of .txt on other folder.
I need the script which works as first script above but I able to add “?” on every title because the filename does not contain “?”.
Or if it possible to include anything that start with "who, how, where, when, which" will automatically add "?"
3) Some of filename has many “-”. For example: Data-presentation-2012--Backup only.txt
Make sure the script will take “---” as “ .” , so it will become:
Data presentation 2012. Backup only.
That’s all i need. I really appreciate your help. :) It will take months if I do all these manually. Thanks.