4,005 reputation
513
bio website taz.net.au/blog
location Australia
age 46
visits member for 1 year, 11 months
seen Apr 4 at 2:25
stats profile views 126

Apr
9
awarded  Enlightened
Apr
9
awarded  Nice Answer
Apr
2
comment Problem using awk
yep, that's because an END block runs at the end of ALL input (or on exit), not at the end of every file. terdon's answer will work for multiple files. or you could use a for loop wrapper, or construct a list of filenames (with, e.g., find) and pipe into xargs -n 1 or any of several other methods of running the awk script once per file.
Mar
31
answered Problem using awk
Mar
31
comment Find executable files recursively
try find ... -exec -ls -l {} \+ instead of \; - doing that will cause only one ls command to be generated with multiple filename args, similar to how xargs works. read the find man page and search for -exec for details.
Jan
6
answered Wget images issue from api_key
Jan
6
awarded  Civic Duty
Jan
5
answered How to determine which sd* is usb?
Jan
5
comment Convert discus output into readable HTML mail
are you sure you want text/html? text/plain would be adequate (and better) for a simple email like this. also, you don't need the two grep statements, awk can do regexp matching. try discus -c | awk '/\// && !/\/run/ {print $1,$9}'
Jan
5
comment Convert discus output into readable HTML mail
good answer, a herenow document is a much better (certainly more readable) way than lots of echo statements. The discus output needs to be surrounded by <pre> and </pre> tags, otherwise the columns wont line up properly when displayed...or send the mail as text/plain. or, as Faisal wanted only fields 1 and 9, use discus -c | awk '/\// && !/\/run/ {print $1,$9}'
Jan
4
comment Is there a command line tool to insert line breaks into a long string?
*nix is just a way of saying "generic unix or unix-like systems" - it dates from a time when the word Unix was a proprietary trademark of AT&T
Jan
4
comment Is there a command line tool to insert line breaks into a long string?
i mean now-obsolete proprietary junk *nixes.
Jan
4
answered Is there a command line tool to insert line breaks into a long string?
Oct
22
comment EPUB reader for *BSD/Linux
There isn't really anything that competes with calibre for ebook reading or conversion. IMO the UI is tolerable because the underlying features (library, indexing, reading, conversion) work so well...shame the UI is so weird and clunky. However, if you don't want to use the main calibre GUI, calibre's ebook-viewer can run standalone, and ebook-convert is a command-line conversion tool.
Oct
20
comment EPUB reader for *BSD/Linux
There are many valid uses of calibre. BTW, calibre's ebook-viewer has the same UI problems as the rest of calibre which suffers greatly from NIH-syndrome and the author's idiosyncrasies....it works well enough for the most part, but I wish it used standard UI conventions (a standard menu bar instead of the giant and sometimes incomprehensible icons would be a good start).
Oct
13
answered Can't read a file although it's in my group and permissions for group read are set
Oct
12
comment How to force Debian to wait for DHCP
or change allow-hotplug to auto for both eth0 and eth1
Oct
12
answered Which desktop environments let you switch to a non-default window manager?
Oct
11
answered How to find out what is this process for?
Oct
11
comment If symlink on NFS points to local disk, will advantage of local disk be lost?
I'd be more worried about "However, NFS is occasionally flaky, causing slowdown/freezing of the machines.". Your sysadmin needs to fix the NFS server (or upgrade it to meet the demands placed on it), or fix your network's "plumbing" (cabling/switches etc). NFS can be annoying when things go wrong, but should run smoothly and stably if there's no underlying hw problem.