October 22nd, 2011
Convert RAW files to JPEG in batch. Convert all files in a folder using a command. For this to work, first you must have ‘ufraw’ package installed. sudo apt-get install ufraw or sudo yum install ufraw depending on your OS.
find . -type f -name "*.CR2" -exec ufraw-batch --out-type=jpeg '{}' \;
Posted in Command Line, Linux | No Comments »
Tagged with: convert, image, jpeg, jpg, photo, raw, ufraw
August 11th, 2011
This command will send a line from a given text file one every 10 mins as an SMS to a given number.
i=1; while [ 1 ]; do sms INSERT_PHONE_NUMBER "$(cat "/home/binnyva/sms.txt"|head -n$i|tail -n1)"; sleep 10m; i=$(expr $i + 1); done
Script calls the command ‘sms’ – you can define that command however you want. In my case, its a variation of this script.
Posted in Command Line, Linux | 2 Comments »
Tagged with: command, file, Linux, sms, text
August 11th, 2011
Command to send a text to any phone once every 15 mins.
while [ 1 ]; do sms NUMBER_GOES_HERE "$(date '+%I:%M %p') Hey Anju. Still awake?"; sleep 15m; done
Script calls the command ‘sms’ – you can define that command however you want. In my case, its a variation of this script.
Posted in Command Line, Linux | No Comments »
Tagged with: command, Linux, sleep, sms, text, while
January 3rd, 2011
Facebook has managed to make this as complicated a a linux command. Hence this entry…
Account(Top Right Corner) > Privacy Settings > Apps and Games > Edit Settings > Apps you use > Edit Settings
Posted in internet | 1 Comment »
Tagged with: app, application, facebook, privacy, site
October 5th, 2010
Command to generate a random password…
openssl rand -base64 6
Posted in Command Line | No Comments »
Tagged with: bash, command, password, rand, random, ssl
October 29th, 2009
This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.
while [ 1 ]; do if [ -z "`curl -I "http://cdimage.ubuntu.com/releases/9.10/release/"|grep "404"`" ]; then kdialog --msgbox "9.10 Released"; exit; fi; sleep 300; done
Posted in Code, Command Line, Linux | 2 Comments »
Tagged with: bash, command, curl, launch, Linux, script, shell, ubuntu
August 21st, 2009
Run this command to find the installed version of Ubuntu…
cat /etc/lsb-release
Posted in Command Line, Linux | 6 Comments »
Tagged with: command, Linux, release, ubuntu, version
July 25th, 2009
Run top in batch mode
top -b -d 10 -n 3
Posted in Command Line, Linux | No Comments »
Tagged with: batch, cli, command, filler, Linux, top
July 22nd, 2009
Transfer stdin and stdout to and from machines over the network
ssh remote_machine 'cat - > file' < file
Posted in Command Line, Linux | No Comments »
Tagged with: cat, filler, network, shellfu, ssh, stdin
July 7th, 2009
Use this command to add line numbers to a text file…
sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
Posted in Command Line, Linux | 3 Comments »
Tagged with: command, line, Linux, number, numbering, sed, shellfu