7 February, 201322 October, 2015bash, Linux 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: […]
30 November, 201230 November, 2012bash 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 […]
13 June, 201214 November, 2012bash, Linux, Mail Use ‘mutt’ to send email with attachment The unix ‘mutt’ command can be used to send an email with attachment: mutt -s “Test message” name@something -a files.tar < message.txt […]
25 May, 201225 October, 2012bash, Linux tar Create a tar file of files located in a folder: tar -cvf filname.tar foldername/ where: c = create v = verbose f […]
25 April, 20129 October, 2017bash, Ldap, Linux, UiB ldapsearch users and places that contains æ, ø and å We needed to collect “Place” information per user from our LDAP server. The problem was that the description of the “Place” came […]