Automatically run program on startup under linux ubuntu

July 27th, 2016

sudo mv /filename /etc/init.d/
sudo chmod +x /etc/init.d/filename
sudo update-rc.d filename defaults

How to set up bash completion for command arguments

July 27th, 2016

Here are a couple of links to the information that actually helped me create some bash completion functions.

How do I set up bash completion for command arguments?

Writing your own Bash Completion Function


How to process a multiline string line at a time

July 27th, 2016

foreach (split(/\n/, $str)) {
  if (/START/../END/) {
    next if /START/ || /END/;
    print;
  }
}

UNIX find for finding file names NOT ending in specific extensions

July 27th, 2016

without ( and the need to escape it:

find . -not -name "*.exe" -not -name "*.dll"

and to also exclude the listing of directories

find . -not -name "*.exe" -not -name "*.dll" -not -type d

or in positive logic ;-)

find . -not -name "*.exe" -not -name "*.dll" -type f 

HP-UX Porting and Archive Centre

July 27th, 2016

This is the HP-UX Porting and Archive Center - pre-built packages for HP-UX 11i