add merged script
parent
30452fd4ea
commit
2aca867e0d
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# combine all files
|
||||
for i in $(find . -type f -name "*.m3u") ; do (cat "${i}"; echo) | grep -v "#EXTM3U" >> $(basename $i) ; done
|
||||
|
||||
# convert all file names to lower case
|
||||
for F in * ; do NEWNAME=$(echo "$F" | tr '[:upper:]' '[:lower:]') ; mv "$F" "$NEWNAME" ; done
|
||||
|
||||
# put all files into folders starting with the first character in their names
|
||||
for i in *.m3u ; do dir=$(echo $i | cut -c 1 -) ; mkdir -p $dir ; mv $i $dir ; done
|
Loading…
Reference in New Issue