I‘m writing a shell script for automation purpose. The output the path of the current working directory is stored in $PWD or it can be obtained using the pwd command. How do I find out find out 3rd field separated by the forward slash (/) delimiter using $PWD under Unix like operating systems?
How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell?
What is /bin/dash? I noticed that the default system shell /bin/sh was changed to /bin/dash. Why was this change made?
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?