Posts Tagged With: text

Text type convert

Tagged with: , , , , , , ,

Convert a text file format from MSDOS to UNIX


dos2unix input_file output_file
No Comments »

Get the Plain Text Version of a Web Page

Tagged with: , , , , , , , ,

This command fetches a web page, converts it to text and shows it.


lynx -dump http://www.example.com/
No Comments »

Fix for Missing Fonts in Debian’s XMMS

Tagged with: , , , , , , , , , ,

If you have a debian system and the XMMS in that has a bug that hides the fonts in dailog, try this command…


dpgk-reconfigure locales
1 Comment »

Change Case

Tagged with: , , , , , ,

Convert from lower case to upper case


echo 'hello world' | tr '[:lower:]' '[:upper:]'
No Comments »

Remove Empty Lines

Tagged with: , , , , , ,

Remove empty lines from a file using sed


sed '/^$/d' file.txt

Original Article

No Comments »

Reverse a File

Tagged with: , , , , , ,

This commands reverses a file in linux - the last line will be the first…


tac file.txt

tac = reverse of cat

No Comments »

Create a Sound File from a Text

Tagged with: , , , , , ,

You can create a wav file of a written text using this command


echo "It's such a beautiful day! Why are you in front of the computer?" | festival --tts
echo "It's such a beautiful day! Why are you in front of the computer?" | text2wave -scale 50 -o beautiful_day.wav
No Comments »

Recursive Grep

Tagged with: , , , ,

Recursively check a folder to find the given text using grep


grep -R "text" *
No Comments »

Manual to Text

Tagged with: , , ,

Ever wonder how you can get a man page in into a format you can read and print?


man command | col -x -b  >  command.txt

Original Article

No Comments »

Search Text in a Folder using grep

Tagged with: , , ,

Search for a specific text in a folder using grep


grep "fetchFeedPacksCustomize()" *.js

[tags]grep,search,text,folder[/tags]

No Comments »