This file contains 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
egrep -o '([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})' [filename-in-which-you-want-to-grep-for] |
This file contains 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/bash | |
# for i in *.MP4; do ffmpeg -i $i -vcodec libx264 -crf 21 -an out/$i && mv $i $i.done; done | |
c=0 | |
d=$(date +%Y%m%d) | |
if [ ! -d "done/$d" ]; then | |
mkdir "done/$d" | |
fi | |
if [ ! -d "out/$d" ]; then |
This file contains 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/bash | |
# Note: a proper setup in /etc/fstab is necessary! | |
c=0 | |
echo -en "Mounting sdcard..." | |
sudo mount -o uid=1000,gid=1000 /mnt/sdcard | |
echo -en " done\n" | |
files=$(ls /mnt/sdcard/DCOM/100CANON/MVI*.MP4 | wc -l) |