791 reputation
36
bio website pvv.ntnu.no/~kjetijor
location Trondheim, Norway
age 36
visits member for 3 years, 11 months
seen Nov 10 at 19:35

Jan
23
answered Straightforward Linux Clustering
Jan
14
comment Adding an empty line at the end of input
If you're wondering about the { list; } form, see the "Compound Commands" section of the manual page for bash. It executes a command-list in the current shell environment. The reason we use echo at the end is just to append a newline, by default echo emits a trailing newline. The reason we use the { list; } form has to do with the way bash parses and sets up redirections/pipes. somecmd; echo | someothercmd, will just connect a pipe between echo and someothercmd. With the compound command, the entire command list will have it's stdout connected with a pipe to someothercmd.
Jan
14
answered Can I make `cut` change a file in place?
Jan
13
comment Adding an empty line at the end of input
Then I'll shamelessly incorporate your better solution into my answer :)
Jan
13
revised Adding an empty line at the end of input
A word was forgotten, it has now been added.
Jan
13
answered Adding an empty line at the end of input
Jan
11
revised History command inside bash script
Removed silly language
Jan
11
awarded  Teacher
Jan
11
awarded  Editor
Jan
11
comment Why do all my DNS queries resolve to 192.168.1.251?
@xenoterracide with the @<ip> option to dig, dig goes directly to <ip> and ignore any nameservers listed in /etc/resolv.conf
Jan
11
revised Why do all my DNS queries resolve to 192.168.1.251?
Added a rationale section for the thoughts behind the answer
Jan
11
answered History command inside bash script
Jan
11
awarded  Supporter
Jan
11
answered Why do all my DNS queries resolve to 192.168.1.251?
Dec
21
answered Sync writes very slow. Ubuntu 10.10, 32 bits, ext4