Re: words in file
- From: hipa <hipa@xxxxxxxxxx>
- Date: Sun, 26 Sep 2010 17:39:38 GMT
On Sun, 26 Sep 2010 12:57:07 -0400, Marious Barrier wrote:
On 09/26/2010 08:22 AM, hipa wrote:
Hi
I want to print all the words, with an extention, in a simple text
file. For example, all the *.mp3 filenames must be printed on the
screen. Can anyone give me some tips,
Thx!
ls to get the file list of a directory and grep to filter them, using
regexp.
ls | grep -iP "\.mp3$" > list.txt
Sorry if I didn't explain it well. In a text file I have the sentence
"Test.mp3 is a music file". Now i'd like to print "Test.mp3". So
extracting the words with the mp3 extention.
.
- Follow-Ups:
- Re: words in file
- From: Marious Barrier
- Re: words in file
- References:
- words in file
- From: hipa
- Re: words in file
- From: Marious Barrier
- words in file
- Prev by Date: Re: words in file
- Next by Date: Re: words in file
- Previous by thread: Re: words in file
- Next by thread: Re: words in file
- Index(es):
Relevant Pages
|