piping data
find -name *.mp3 | cp *.mp3 //home/tearinox
Now i would like to get used to this whole piping data idea. That command doesn't work and they are mp3 files in the directory. How do i copy all my mp3 files to using the piping technique seen above? |
find . -type f -name \*.mp3 -exec cp '{}' /where/to/copy \;
|
thx neo77777
however, if i wanted to do it with ls, How would i use the "|" or "> <" symbols to accomplish the same thing? (btw if theres a man page on this, let me know, id like to read it) |
Sorry I am editing the command over and over you can ignore -prune -path thing. As for piping I will need to investigate farther.
|
I'm not an expert on the subject but try
find -name *.mp3 | cp $(cat) ~/tearinox cp $(find -name *.mp3) ~/tearnox should also do the same thing |
did any of that work? This is my guess:
find . -name "*.mp3" -exec cp {} ~/tearinox \; or maybe: ls *.mp3 | cp {} ~/tearinox but I'm no expert - I'm a newbie! |
lol.. piping is GREAT !!!
cat bigfile | more (usefull) rpm -ivh `find ~/backup | grep mplayer` (usefull) rpm -e `rpm -qa` (lol, did it once, interesting reult, DONT TRY !) cat /dev/urandom > /dev/dsp (funny !!!!) cat outputs opens the rendom number genrator, and prints to screen. but the > redirects this standard output to a file.... and /dev/dsp is the sound card file.... turn ur speakers up REEALY high first though :) |
cool, thx guys
|
oohh, here's anouther good one...
cat /dev/urandom > /dev/mouse now try getting a headshot in unreal tournament !!!!!! |
thats harsh. Ill try it :)
|
All times are GMT -5. The time now is 02:20 PM. |