baptx

remame_by_playlist_index

Jan 26th, 2014
943
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. IFS=$'\n'
  2. if [ $# -gt 0 ]; then
  3.     if [ ! -f $1 ]; then
  4.     echo "Error: file $1 does not exist"
  5.     exit
  6.     fi
  7.     path=`echo $1 | rev | cut -d / -f 2- | rev`
  8.     if [ $path == $1 ]; then
  9.     path=$PWD
  10.     fi
  11. fi
  12. if [ $# == 1 ]; then
  13.     nb=0
  14.     for i in `cat $1`
  15.     do
  16.     if [ -f $path/$i ]; then
  17.         let ++nb
  18.         if [ $nb -lt 10 ]; then
  19.         digit="00"
  20.         elif [ $nb -lt 100 ]; then
  21.         digit="0"
  22.         else
  23.         digit=""
  24.         fi
  25.         mv -v $path/$i $path/$digit$nb" - "$i
  26.     fi
  27.     done
  28. elif [ $# == 2 ] && [ $2 == "-r" ]; then
  29.     for i in `ls $path`
  30.     do
  31.     name=`echo $i | cut -d - -f 2- | cut -c 2-`
  32.     for j in `cat $1`
  33.     do
  34.         if [ $path/$name == $path/$j ]; then
  35.         mv -v $path/$i $path/$name
  36.         fi
  37.     done
  38.     done
  39. else
  40.     echo "Playlist files will be renamed by playlist index.
  41. This script is designed for M3U playlists using relative paths.
  42. Playlist file needs to be in playlist files folder, subfolders not supported.
  43. You can use this script with other playlists if you convert them.
  44. Index uses 3 digits: playlist files are renamed alphabetically up to 999 files.
  45.  
  46. Usage: $0 playlist [OPTION]
  47. OPTION: -r: remove index from filename (add by default)"
  48. fi
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • Sinmirin
    127 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment