[Linux-users] Fun with Bash: Spinning a for loop backwards

2010-10-27 Thread Douglas Royds
$ for f in a b c d; do echo $f; done a b c d $ for f in $(echo a b c d | tac -s' '); do echo $f; done d c b a $ for f in the quick brown fox jumps over the lazy dog; do echo -n $f ; done; echo the quick brown fox jumps over the lazy dog $ for f in $(echo the quick brown fox jumps over the lazy

[Linux-users] Dynamic linker search paths

2011-05-04 Thread Douglas Royds
Just for interest. The GNU dynamic linker ld has a compiled-in search path that it uses to find shared libraries at run-time. Here's how to view it: $ ld -verbose | grep SEARCH_DIR | sed 's#; #;\n#g' SEARCH_DIR(/usr/x86_64-linux-gnu/lib64);

[Linux-users] Command-line screenshots

2012-11-19 Thread Douglas Royds
Take a screenshot using `import` from ImageMagick: $ import screenshot.png --- Click on the window to screenshot $ import -window 0x121f2ef screenshot.png--- Specify the window $ import -window root screenshot.png --- The lot What's the current X

Re: [Linux-users] Grep include and exclude

2013-05-06 Thread Douglas Royds
On 07/05/13 11:40, Jim Cheetham wrote: On May 7, 2013 11:33 AM, Douglas Royds douglas.ro...@taitradio.com mailto:douglas.ro...@taitradio.com wrote: On my version of grep, the order of --include and --exclude on the command line seems to be important. The following command finds hits in all

Re: [Linux-users] Suggestions Please...

2013-06-13 Thread Douglas Royds
GCSB Online On 14/06/13 17:28, Paul Swafford wrote: PRISM Online On 6/14/2013 5:16 PM, Andrew Errington wrote: Mine is Virus_Detected. On 14 June 2013 14:14, Steve Holdoway st...@greengecko.co.nz wrote: My current SSID of skynet is getting a bit old hat now, seeing as it's 2 years past

Re: [Linux-users] Bash Haiku...

2014-09-24 Thread Douglas Royds
structures, indexes worse informix knows best as tight as a drum in security it shines lock down, BSD Slow day. On 25/09/14 13:42, Derek Smithies wrote: Hi, but it is so true for all who just want to do you go ubuntu Derek. On 25/09/14 13:37, Douglas Royds

Re: [Linux-users] wttr.in

2016-04-21 Thread Douglas Royds
$ curl wttr.in/Moon ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users