Penguin
Diff: BashOneLiners
EditPageHistoryDiffInfoLikePages

Differences between version 19 and previous revision of BashOneLiners.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 19 Last edited on Tuesday, June 21, 2005 4:51:19 am by AristotlePagaltzis Revert
Older page: version 18 Last edited on Friday, March 4, 2005 11:22:02 am by JohnMcPherson Revert
@@ -1,6 +1,5 @@
-!!! Sort a directory of mp3s into directories like Artist/Album Name/  
-  
+!!! Sort a directory of [MP3]s into directories like <tt> Artist/Album Name/</tt>  
  
  <verbatim> 
  for file in *.mp3; do 
  eval $( id3tool "$file" | sed 's/^[^:]* //; s/:[\t ]*/="/; s/[[:cntrl:]]//g; /./!d; s/ *$/"/' ) 
@@ -12,9 +11,9 @@
 It uses [id3tool | http://nekohako.xware.cx/id3tool/] to read the [ID3] tag, instructs [SED] to massage the information into something that looks like [Shell] script, executes that to put values into variables, checks which variables are set, and if at least an artist name (optionally also album name) is given, moves the file into that directory. (It's rather a mouthful for a oneliner, but hey.) 
  
 ---- 
  
-!!! Refresh the all [GPG] keys from the KeyServer without flooding it:  
+!!! Refresh the all [GPG] keys from the KeyServer without flooding it 
  
  <verbatim> 
  for uid in $( gpg --with-colons --list-keys | grep ^pub | awk -F: '{print $5}' ) ; do gpg --refresh $uid ; sleep 5 ; done 
  </verbatim> 
@@ -26,9 +25,8 @@
  gpg --refresh $uid 
  sleep 5 
  done 
  </verbatim> 
-  
  
 __Notes by AristotlePagaltzis:__ 
  
 This is a useless use of grep(1). Better written as follows: