Get the Plain Text Version of a Web Page
This command fetches a web page, converts it to text and shows it. lynx -dump http://www.example.com/
View ArticleText type convert
Convert a text file format from MSDOS to UNIX dos2unix input_file output_file
View ArticleOptimized Grep Searching
Grep that searches recursively, ignores binary files, and doesn’t look inside Subversion hidden folders. grep -Ir --exclude="*\.svn*" "pattern" *
View ArticleSpell Check a Text File using Aspell
You can use Aspell to spell check of a text document using this command. It must be executed in a termial – as it has an console interface. aspell check test.txt Original Article
View ArticleReplacing in Found Files
Replace one string by another in all file found by find. find . -name *whatyouwant* -exec perl -pi.bak -e 's/TEXT_TO_REPLACE/TEXT_TO_REPLACE_IT_WITH/g' {} \;
View ArticleInstall Package List
Install a list of packages from a text file. cat packages.txt | xargs apt-get install
View ArticleSend Text Once Every 15 Mins
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...
View ArticleSend One Line From a Text File as as SMS Every 10 Mins
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)";...
View ArticleIterate a Text File in Bash
This is how you iterate thru a text file outputting a line at a time in Bash shell scripting. IFS=$'\n'; for i in $(cat FILE.TXT); do echo "$i"; done
View Article
More Pages to Explore .....