txt

Linux commands and code snippets collection

  • Home
  • About

Tag Archives: text

25 Mar

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
Binny V A Posted in Command Line, Linux command, debian, dpkg, fix, font, Linux, locale, locales, reconfigure, text, xmms 1 Comment
04 Mar

Change Case

Convert from lower case to upper case


echo 'hello world' | tr '[:lower:]' '[:upper:]'
Binny V A Posted in Command Line, Linux case, command, convert, Linux, text, tr, transilate Leave a comment
07 Feb

Remove Empty Lines

Remove empty lines from a file using sed


sed '/^$/d' file.txt

Original Article

Binny V A Posted in Command Line, Linux blank, command, empty, line, Linux, remove, sed, text Leave a comment
05 Feb

Reverse a File

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


tac file.txt

tac = reverse of cat

Binny V A Posted in Command Line, Linux cat, command, file, Linux, reverse, tac, text Leave a comment
17 Jan

Create a Sound File from a Text

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
Binny V A Posted in Command Line, Linux festival, sound, speech, text, text2wave, wav, wave Leave a comment
18 Dec

Recursive Grep

Recursively check a folder to find the given text using grep


grep -R "text" *
Binny V A Posted in Command Line, Linux folder, grep, recursive, search, text Leave a comment
16 Nov

Manual to 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

Original Article

Binny V A Posted in Command Line, Linux convert, man, page, text Leave a comment
25 Sep

Search Text in a Folder using grep

Search for a specific text in a folder using grep


grep "fetchFeedPacksCustomize()" *.js

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

Binny V A Posted in Command Line, Linux folder, grep, search, text Leave a comment
21 Aug

Read Tarballed Text File

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


bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
Binny V A Posted in Command Line, Linux bzip, read, tar, text, wikipedia, zip Leave a comment
09 Jul

Fetch columns of Output using Awk

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]

Binny V A Posted in Uncategorized awk, cli, filter, Linux, output, script, sed, separator, shell, string, text Leave a comment

Post navigation

← Older posts
Newer posts →

Archives

  • October 2017
  • November 2015
  • August 2014
  • November 2013
  • August 2012
  • May 2012
  • March 2012
  • October 2011
  • August 2011
  • January 2011
  • October 2010
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007

Meta

  • Log in
Fruitful theme by fruitfulcode Powered by: WordPress
↑