{ 0 comments }
echo command
How do I assign the output of a shell command to a shell variable under Unix like operating system? For example, I want to store the date command output to a variable called $now. How do you do that?
{ 3 comments }
How do I get the current date in Unix or Linux shell scripting and store it into a shell variable? How do I print the current date using Unix shell script?
{ 0 comments }
I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?
{ 3 comments }
I noticed that many shell scripts in /etc/init.d/ directory use the following syntax:
echo $“Usage $prog start|stop|reload|restart”
Why a double-quoted string preceded by a dollar sign ($”string”) using the echo command under Linux / UNIX bash scripts?
{ 2 comments }



