Posts

Showing posts with the label linux

Removing columns of characters from a line

In a file with a similar content shown below, one can remove certain columns based on the delimiters. aaa:123:sometext1:name1:zz bbbbbbb:44457:sometext2:name2:yy2 ccccc:783456:sometext3:name3:xx3 If, for example, one wants to remove the part sometext# in each line, use the following command cut -d: -f1,2,4,5 filename : is the delimiting character. filename is the name of the file that contains the text (duh!!) If the delimiter is space , such as the following bb1 457 sometext2 name2 yy2 use the following command: cut -d' ' -f1,2,4,5 filename

Change MAC address in linux

As root, do the following: # ifconfig eth0 down # ifconfig eth0 hw ether 00:44:55:55:55:55 # ifconfig eth0 up < http://tcr82.tynt.com/ads/7/0draKVRt1 >

My fav (1) desktop setup

Image
Openbox: xcompmgr-dana The transparent menus are done with the -m flag. | Conky, using a customized version of This. | Terminator | PCManFM | Bmpanel via gentoo sunrise, using a customized version of the Crunchbang Linux theme. | Opera | Pidgin | Volwheel | MPD Wallpaper: Wallpaper Link Openbox Theme: xfzen green Theme Link GTK Theme: MurrinaVerdeOlivo from x11-themes/gtk-engines-murrine Icons: Erectus Green Icons Link Inspiration: Crunchbang Linux

Openbox desktop

Image
The following is a good setup for a desktop.