How do I reverse lines of a file or files under Linux or Unix like operating systems?
{ 3 comments }
by nixCraft on July 6, 2012 · 3 comments
by nixCraft on July 6, 2012 · 5 comments
How do I check if a directory contains files? How do I find out if a directory contains files using bash shell under Linux or Unix like operating systems?
{ 5 comments }
by nixCraft on June 4, 2012 · 4 comments
I need to generate a md5 hash for given string. It will be used by shell script to generate keys for remote web service or cryptographic application. How do I generate a md5 hash based on any input string under Linux or Unix like operating systems?
{ 4 comments }
by nixCraft on May 5, 2012 · 3 comments
by nixCraft on April 29, 2012 · 7 comments
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?
{ 7 comments }
by nixCraft on April 20, 2012 · 2 comments
How do I test existence of a text file in bash running under Unix like operating systems?
{ 2 comments }
by nixCraft on April 20, 2012 · 4 comments
How can I iterate bash for loop using a variable range of numbers in Unix or Linux or BSD or Apple OS X operating systems?
{ 4 comments }
