Showing posts with label shell programming. Show all posts
Showing posts with label shell programming. Show all posts

Sunday, December 2, 2012

Check Given Word Using Switch Case Shell Script | Shell Programming


Write a shell script to determine whether the given word begins with lower case or uppercase letter check whether it is three character word or whether it is starting with a special character

Check Given Word Using Switch Case Shell Script | Shell Programming


Accept Input from User as Word then using Switch case we can find out given Word in lower case or uppercase , whether it contain Special character or Its Three character

Compare Two Strings And Size Of Strings Shell Script | Shell Programming


Write a shell script  to to run check on strings which includes whether strings are equal or not and whether the size of the strings greater than zero or not.


Compare Two Strings And Size Of Strings Shell Script |  Shell Programming


Accept Two Strings from User on Terminal then first check Strings whether given string empty or not using [ -z $stringname ] it will return 1 if strings are empty after that we can compare this two strings using = operator .

Find Out File Size Using Shell Script | Shell Programming



Write shell script to to know whether the size of the file provided is greater than zero or zero and print size of file.

Find Out File Size Using Shell Script | Shell Programming


This is small script to finding out provided filename size whether it exist or not and if it then findout its size in Byte and print its size using stat -c%s $filename command.