These parts of scripts were tested mainly on Linux and on Solaris. In fact, what works on Solaris can well work on Linux, as Solaris uses "V" system syntax and much older BASH version. The opposite is not true. Of course you have to specify the interpreter on the first line of your script and that can be a differentroute:
- #! /usr/bin/bash ... for Solaris and the clones
- #! /bin/bash ...... for Linux
- #! /usr/pkg/bin/bash .... for NetBSD
- #! /usr/local/bin/bash ... for FreeBSD and OpenBSD
A lot of these scripts written for bash will work in sh as well, however some functions and attributes have different syntax, such as
echo -n "Johny"
equals to
echo "Johny" \c
in bash. Whereas other functions or attributes do not work for sh at all. KSH is another very intelligent shell, and most Bash stuff works there too.
Various ideas and solutions are listed under more or less intelligently labeled bookmarks uder Scripting. Feel free to use them as I have not invented them but found similar cases elsewhere on the Internet and in the books.
- HOME
~~~~~~~~~~~~~~~
- OpenBSD
- NetBSD
- FreeBSD
- Linux
- Solaris
- Windows
~~~~~~~~~~~~~~~
- Git
- Ansible
- Atlassian
- Network tools
- Qemu
- Virtualbox
- Vim
- Tmux
- Mutt
- STar
~~~~~~~~~~~~~~~
- MySQL
- PostgreSQL
- Postfix
- OpenSSL
- tcpdump
- SSH
~~~~~~~~~~~~~~~
- Packet Filter
- IP Filter
~~~~~~~~~~~~~~~
- Bash
- web-dev
- Hacking
- LINUX DAYS