BASH Shell

What is /bin/dash? I noticed that the default system shell /bin/sh was changed to /bin/dash. Why was this change made?

{ 3 comments }

How do I run “foo” command 10 times (or n times) under Linux or UNIX like operating systems?

{ 6 comments }

How do I auto Logout my shell user in Linux after certain minutes of inactivity?

{ 0 comments }

UNIX / Linux: Increment The Date

by Vivek Gite on April 26, 2011 · 1 comment

I want to increment the date under UNIX or Linux operating system while writing shell scripts. For example Apr/27/2011 should be incremented as Apr/28/2011 and so on. How do I increment a date in UNIX or Linux shell?

{ 1 comment }

I have a file of that looks as follows:

foo bar
tom jerry
UNIX Linux

Each word and/or Linux is a different length. How do strip or remove the last character from each line using bash or ksh shell only?

{ 3 comments }

Bash: Pass Shell Variables To awk

by Vivek Gite on April 19, 2011 · 0 comments

How do I pass shell variables to awk command or script under UNIX like operating systems?

{ 0 comments }

Linux: Set Environment Variable

by Vivek Gite on April 14, 2011 · 4 comments

Bash shell is used for various purposes under Linux. How do I customize the shell environment variable under Linux operating systems?

{ 4 comments }