1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-12-22 16:48:13 +00:00

Modified flasher to copy and link correctly

This commit is contained in:
J. Fernando Sánchez 2013-02-16 21:11:22 +01:00
parent 3ccd46b2b6
commit 85513e3fd4
2 changed files with 14 additions and 2 deletions

View File

@ -29,10 +29,12 @@ for file in $files; do
sudo $PLAYER $file
;;
link)
ln -s $file $destfile && echo "Video linked successfully to $destfile." && echo "Enjoy"
sudo ln -s $file $destfile && echo "Video linked successfully to $destfile." && echo "Enjoy"
sudo chown $USER:$USER $destfile
;;
copy)
cp $file $destfile && echo "Video copied successfully to $destfile." && echo "Enjoy"
sudo cp $file $destfile && echo "Video copied successfully to $destfile." && echo "Enjoy"
sudo chown $USER:$USER $destfile
;;
esac

10
replace-accented.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Note: input should end with a newline
LINES=''
while read LINE; do
echo $LINE | sed 's/á/a/g' | sed 's/Á/A/g' | sed 's/é/e/g' | sed 's/É/E/g' | sed 's/í/i/g' | sed 's/Í/I/g' | sed 's/ó/o/g' | sed 's/Ó/O/g' | sed 's/ú/u/g' | sed 's/Ú/U/g' | sed 's/ñ/n/g' | sed 's/Ñ/N/g' | sed 's/ü/u/g' | sed 's/Ü/U/g'
done
exit 0