bash scripts

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 }

How do I use awk pattern scanning and processing language under bash scripts? Can you provide a few examples?

{ 29 comments }