shell: basename and dirname through Parameter Expansion

If you want to have basename and dirname a little faster through shell builtins, you may want to try these in bash or Korn Shell: basename: ${file##*/} dirname: ${file%/*} I don’t really recommend to use these substitutes, I still find basename and dirname quite readable and I am not using them in a loop anyway.

Emacs + tramp + putty = you can edit your UNIX files remotely “anywhere”, even on Windows

http://www.gnu.org/software/tramp/ TRAMP extends the capabilities of the emacs “directory editor” (dired) to allow you to also deal with remote files. “Remote” as in: you can reach the file or directory through ssh or sftp or ftp or … SSH on Windows – PuTTY: On Windows platforms it can make use of the PuTTY family of… Continue reading Emacs + tramp + putty = you can edit your UNIX files remotely “anywhere”, even on Windows

brewing perls on my platforms

[2012-10-07 12:45:26] johayek@HayekY $ cpanm –force WWW::Curl [2012-10-07 03:17:01] johayek@HayekY $ perlbrew –force –notest install perl-5.16.1 [2012-10-07 12:47:56] johayek@HayekU $ perlbrew –force –notest install perl-5.16.1

O’Reilly Media book: Learning the Korn Shell, 2nd Edition

Learning the Korn Shell, 2nd Edition – O’Reilly Media (They don’t offer it as an e-book. What a pity.) kornshell.com http://kornshell.com/doc/ KornShell 88 Manual Page [Link] (-> get a git clone as described here and improve the links etc.; are their true man page sources?) KornShell 93 Manual Page [Link]  Q: The ksh on “your” AIX – is it ksh88 or… Continue reading O’Reilly Media book: Learning the Korn Shell, 2nd Edition