SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Linux OS.: Technical questions

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Thomas A Watson who wrote (369)11/19/2012 12:23:13 PM
From: Thomas A Watson  Read Replies (1) of 484
 
one liner to move mp3 from all subDirectories to the current directory.
put commands in file movem. source movem.

find | grep mp3 | sed -e 's/ /\\ /g' | sed -e 's/-/\\-/g' | awk '{print "mv " $0" ."}' > movem
find lists all files.
grep only mp3
sed substitute "\ " for all spaces.
sed substitute "\-" for all -
awk build move command.
awk add "mv " then file then " ." meaning this directory
> redirect in file movem
then chmod 666 all mp3. remove directories usually D01 .... Dnn

from toms.homeip.net
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext