Posts Tagged With: text

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 »

Read Tarballed Text File

Tagged with: , , , , ,

How to read a big text file that is tarballed – without extracting the whole thing…


bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
No Comments »

Fetch columns of Output using Awk

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

One can use awk to get a specific column from a command output…

First column of the command
date|awk '{print $1}'

11th Column of the command
ps aux|awk '{print $11}'

Use a different Field separator
cat /etc/passwd|awk -F ':' '{print $1}'

[tags]awk,sed,shell,script,output,filter,text,cli,linux,string,separator[/tags]

No Comments »