rsync -av /Volumes/Backup\ 2/Daten /Volumes/Backup\ 2/neuiii
#!/bin/bash
hidrive_ssh_key="/tmp/HiDriveRSA.txt"
# Get the SSH Key
echo "Getting HiDrive SSH Key"
idrsa=$(security 2>&1 >/dev/null find-generic-password -gs HiDriveIDRSA | cut -d '"' -f 2|sed s/\\\\012/\\\\n/g)
echo -e "$idrsa" > "$hidrive_ssh_key"
chmod 600 "$hidrive_ssh_key"
rsync -avz -e "ssh -i $hidrive_ssh_key -l username" /Users/bernhard/Desktop/Daten \
username@rsync.hidrive.strato.com:/users/username/Your/Folder/Hierarchy
osascript -e 'tell application "Finder" to mount volume "https://webdav.mediencenter.t-online.de"' &> /dev/null
#M S T M W Befehl
#* * * * * auszuführender Befehl
#┬ ┬ ┬ ┬ ┬
#│ │ │ │ └──── Wochentag (0-7) (Sonntag =0 oder =7)
#│ │ │ └────── Monat (1-12)
#│ │ └──────── Tag des Monats (1-31)
#│ └────────── Stunde (0-23)
#└──────────── Minute (0-59)
# Examples:
#01 * * * * /etc/cron.hourly
#02 4 * * * /etc/cron.daily
#22 4 * * 0 /etc/cron.weekly
#42 4 1 * * /etc/cron.monthly
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
find . ! -name '*m4a*'
find . -name "*.m4a" -exec chmod 670 {} \;
find . -type d -exec chmod 775 {} \;
for i in ./*; do cp ./Preview.jpg $i/Preview.jpg; done
ls -d *.txt | sed 's/\(.*\).txt$/mv "&" "\1.md"/' | sh
cat tree.txt |sed '/.IFO/d' > liste.txt
convert -rotate 348 -background none \
sysprefs.jpg new.png
for i in ./*; do echo "~~NOTOC~~" | cat - $i > ./new/$i; done
find . -name "Thumbs.db" -exec rm -rf {} \;
diff -urp /originaldirectory /modifieddirectory
find . -type d -exec mkdir -p /tmp/copy_dest2/{} \;
oder
rsync -a -f"+ */" -f"- *" /Volumes/Disk1 ~/Desktop/ppdirs/
opendiff file1.txt file2.txt
for i in *.png; do echo "$i"; mv "$i" `echo "$i" |sed s/" "//g`; done
for i in *.png; do echo "$i"; mv "$i" scpm_"$i"; done
if [ -z $(echo $var | grep [0-9]) ]; then echo "NON NUMERIC"; fi
FILENAME=`echo ${FILE##*/}`;
FILEPATH=`echo ${FILE%/*}`;
NOEXT=`echo ${FILENAME%\.*}`;
EXT=`echo ${FILE##*.}`;
stty cbreak -echo; KEY=$(dd bs=1 count=1 2>/dev/null); stty -cbreak echo
touch -t 20090101050202 /location/of/file/filename.png
echo {0..1}{0..1}{0..1}{0..1}
mkfile 12000m 12GB
dd if=/dev/urandom of=~/Desktop/12GB bs=1000000 count=12000
cat touch_screen.css | sed "s/}/}\\`echo -e '\r'`/g" > 2.css
Regex: ([^ ]+$)
ffbookmark=`ls ~/Library/Application\ Support/Firefox/Profiles/*/bookmarkbackups|tail -n 1`
cp ~/Library/Application\ Support/Firefox/Profiles/*/bookmarkbackups/"$ffbookmark" ~/Desktop/ff.jsonlz4