I am new to Unix shell scripting. So can anybody help me?
How to write shell scripts in Sun Solaris? How to run/execute the script?
Please post in detail.
I am new to Unix shell scripting. So can anybody help me?
How to write shell scripts in Sun Solaris? How to run/execute the script?
Please post in detail.
It is not very different from writing a shell script in Linux. Some pitfalls:
#!/usr/bin/env bash
I suggest you to read http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html.
#!/bin/sh -
echo Hello world
) on following lines after that. chmod u+x scriptfile
) ./scriptfile
is the relative pathname if your current directory is where you put the script.