Find a particular extension in a text file

Asked By 0 points N/A Posted on -
qa-featured

We have a text file which contains names of other files having various extensions e.g. .mp,.html..doc etc. how to find the rows/file names present in the text file which has extension .doc and .html and put it into another text file?

SHARE
Best Answer by kamnagarg
Answered By 0 points N/A #111479

Find a particular extension in a text file

qa-featured

Fail to find your document,first you have to search for library and documents if you have Windows 7 or Vista. For html you can use Adobe CS3 Dreamweaver apps. There you can easily find. And a text file you can go your office package if you use it, or go the recent documents if don't delete recent documents. In every folder you can use shortcut way to use F3 and write the file name to find. If windows 7 it also stays on your right bar on top of the monitor. Or go to 'C' drive user and search your documents. If you have Windows Xp then you can find pressing start menu and search option and paste the file name or doc.

Best Answer
Best Answer
Answered By 0 points N/A #111480

Find a particular extension in a text file

qa-featured
  • I am sorry for the inconvenience. I forgot to mention that i need to write a shell script which will scan one text file(question.txt) having entries like
  • abc.html
  • hdgsd.doc
  • hsdksdf.mp
  • and my script should find all the files having extension either .doc or .html and put it into another file (answer.txt)?

 

Related Questions