Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #! /bin/sh
  2. #
  3. # A script for dark0n3's zipscript-c/project-zs by eur0dance
  4. # which retrieves the genre from mp3 releases before the pre.
  5. # Version 1.0
  6. # Note: $1 - a dir where the 0-byte tagline file is located
  7.  
  8. ### CONFIG ###
  9.  
  10. sitename="XxX"
  11.  
  12.  
  13. ### CODE ###
  14.  
  15. fname=`ls "$1" | grep \[$sitename\]`
  16.  
  17. first=`echo $fname | awk -F" - COMPLETE - " '{ print $1 }'`
  18. second=`echo $fname | awk -F" - COMPLETE - " '{ print $2 }'`
  19. output=`echo $second | awk -F" ) - " '{ print $1 }'`
  20. echo $output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement