How to set up bash completion for command arguments
July 27th, 2016Here 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, 2016foreach (split(/\n/, $str)) {
if (/START/../END/) {
next if /START/ || /END/;
print;
}
}
UNIX find for finding file names NOT ending in specific extensions
July 27th, 2016without ( 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, 2016This is the HP-UX Porting and Archive Center - pre-built packages for HP-UX 11i
Exclude directory from find . command
July 27th, 2016Single Directory:
find . -path ./misc -prune -o -name '*.txt' -print
Multiple Directories:
find . -type d \( -path dir1 -o -path dir2 -o -path dir3 \) -prune -o -print
