Fix for Missing Fonts in Debian’s XMMS
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
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
Convert from lower case to upper case
echo 'hello world' | tr '[:lower:]' '[:upper:]'
This commands reverses a file in linux – the last line will be the first…
tac file.txt
tac = reverse of cat
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
Recursively check a folder to find the given text using grep
grep -R "text" *
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
Search for a specific text in a folder using grep
grep "fetchFeedPacksCustomize()" *.js
[tags]grep,search,text,folder[/tags]
How to read a big text file that is tarballed – without extracting the whole thing…
bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
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]