error with find . | xargs
arrrghh !!!
I want to play all movies in all SUBdirectories of the current one. So I tried : Code:
find . | xargs mplayer Code:
xargs: Le paramètre simple n'est pas repérable par apostrophe. Code:
xargs: The (bare?|simple?|unique?) parameter is not (locatable?) with quotes. What did I make wrong ? I also tried : Code:
find . -mindepth 1 | xargs mplayer ----------------- Here's a sample of the output of the former find . command (top and bottom) : Code:
. |
Maybe you want to try somthing like this? :
Code:
prompt> find . -name "*word_you_are_looking_for_here*" -print Code:
prompt> find . | grep word_you_are_looking_for_here |
Gosh, I'm sorry. I didn't even read all of your post.
I use mplayer to play all my movies like so: Code:
prompt> mplayer *.mpeg *.avi *.mpg Code:
prompt> mplayer -fs -loop 0 *.mpeg *.avi *.mpg |
Gee, I don't know what's wrong with me today. I misread your post _twice_.
Try this: Code:
find . -print | grep .mpeg | xargs mplayer |
Thanks for you 3 posts !!! LOL
but Code:
find . -print | grep .mpg | xargs mplayer The weird thing is that I've used this pattern (find . | xargs) for a long time, and it used to work... I must miss some important thing, but I don't see which one... |
Maybe you can play around with xargs to try and feel it out? Maybe put the paths of a few movies in a file, and they do somthing like:
Code:
cat file_with_movie_paths_here | xargs |
Well, the problem seems to come from the maximum amount of chars (20K according to the man page) xargs can handle (what the error message doesn't lead to understand).
I'm still dubious about that, because :
:( I think I'll have to fall back with a find . -exec mplayer "{}" \; which I don't like because I never remember the exact syntax, and furthermore it spans multiple successive mplayer instances, so I cannot stop the whole playlist by typing 'q' at mplayer... :scratch: |
Ok, I've found another way to do it, less convenient, but easy to remember.
However, it should only work with mplayer since it uses its ability to read play lists. Code:
find . > found |
All times are GMT -5. The time now is 05:24 AM. |