Afficher un message
Vieux 21/03/2008, 12h36   #3
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to parse spaces when cat'ing a file?

2008-03-20, 23:18(-04), somebody:
> Given this file called playlist.txt:
>
> "/music/Country/Rascal Flatts/Rascal Flatts/It's Not Just Me.mp3"
> "/music/Rock/AC-DC/Back In Black/AC-DC - 09 - Shake A Leg.mp3"
>
> If I cat the file in a meta command, it breaks up each line on the spaces
> (See below) How can I ensure the entire line is passed to an application
> like mplayer?

[...]

That file happens to be in a format recognised by xargs, so
that's only:

xargs echo < playlist.txt

See man xargs for more options.

--
Stéphane
  Réponse avec citation
 
Page generated in 0,05256 seconds with 9 queries