Search:

Type: Posts; User: sisco311; Keyword(s):

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    942

    [SOLVED] Re: Help with 'grep' and 'pipes'

    Thanks for the clarification!
  2. Replies
    9
    Views
    942

    [SOLVED] Re: Help with 'grep' and 'pipes'

    or:


    mplayer file.mp3 | while read line; do echo $line | grep Title >> out.txt; done
  3. Replies
    9
    Views
    942

    [SOLVED] Re: Help with 'grep' and 'pipes'

    yep, you are right.

    grep is writing to stdout (standard output),
    stdout is redirected to the file when grep exits.
  4. Replies
    9
    Views
    942

    [SOLVED] Re: Help with 'grep' and 'pipes'

    The output of mplayer is piped to grep when mplayer exits.

    I would use mp3info

    mp3info -p "Title: %t\nArtist: %a\n" /path/to/file > file
Results 1 to 4 of 4