How do I import a MySQL .SQL text file to MySQL database sever using command line or gui tools?
[continue reading…]
linux shell
How do I reverse lines of a file or files under Linux or Unix like operating systems?
[continue reading…]
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?
[continue reading…]
[continue reading…]
How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell?
[continue reading…]
What is /bin/dash? I noticed that the default system shell /bin/sh was changed to /bin/dash. Why was this change made?
[continue reading…]
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?
[continue reading…]