Helge's blog

7 February, 2013
by Helge
0 comments

Colours in nano

I am writing most of my bash script with nano editor. If one want to get colours in nano, on can do: [bash] locate *.nanorc [/bash] which will give a list of what is available on your system: /usr/share/nano/html.nanorc /usr/share/nano/java.nanorc … Continue reading

30 November, 2012
by Helge
0 comments

sed

sed is a linux command that can replace characters and words in a file very easy! Syntax: sed -i ‘s/word/newword/g’ file.txt It means: replace all “word” with “newword” in the file called “file.txt”. Be aware! The option -i means that … Continue reading

25 May, 2012
by Helge
0 comments

tar

Create a tar file of files located in a folder: tar -cvf filname.tar foldername/ where: c = create v = verbose f = file filname.tar = the created file ———- To show the content of a tar’ed file: tar -tvf … Continue reading