command substitution

I have setup a shell variable called dest=”/nas100/backups/servers/z/zebra/mysql.tgz”. How do I find out filename (mysql.tgz) and extension (.tgz) in bash program running under Linux or Unix operating systems?

{ 3 comments }

How do I split string based on delimiter into array under Bash shell?

{ 5 comments }

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?

{ 12 comments }

KSH for Syntax

by on August 31, 2007 · 0 comments

Can you explains UNIX ksh for loop syntax which can repeatedly execute a block of statements with a simple ksh script example?

{ 0 comments }

Q. How can I display or show today’s UNIX computer date from a shell script using echo command? How do I store date command output to a variable? A. Date command is use to print or set the system date and time under Linux/Unix like operating systems. However some time you need to include today’s […]

{ 12 comments }