This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function conv { | |
if [ -z "$1" -o ! -f "$1" ]; then | |
break; | |
fi | |
TAGS="/tmp/ex" | |
COVER="/tmp/c.jpg" | |
FLAC=$1 | |
fields='COVER TITLE ALBUM TRACKNUMBER ARTIST GENRE YEAR' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
usage() | |
{ | |
echo "usage: wvsplit <wv> <m|f>" | |
} | |
if [ $# -lt 1 ]; then | |
usage | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
usage() | |
{ | |
echo "usage: splitcue <cuefile> [file_to_split]" | |
} | |
if [ $# -lt 1 ]; then | |
usage | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
usage() | |
{ | |
echo "usage: splitcue <cuefile> [file_to_split]" | |
} | |
if [ $# -lt 1 ]; then | |
usage | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DPDIR='/home/rym/Dropbox/Public' | |
dropbox running | |
if [ $? -eq 0 ] | |
then | |
dropbox start > /dev/null | |
fi | |
if [ $# -ge 1 ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# update photos descriptions and timestamps | |
# usage: update.sh [TIME] [DESCRIPTION] | |
# example: ./update.sh "2:35:45" "Trip" | |
# Add 2h 35m 45s to exif timestamp and add description "Trip" | |
for f in * | |
do | |
if [ -r $f -a `file --mime-type $f | grep -c image` -eq 1 ] | |
then | |
a='' |