User login

script

Upgrade between Drupal versions using a diff shell script

[This should be on its way to being obsoleted by drush, but i'm using it for Drupal 7 alpha so thought i'd finally make sure it was shared.]

Download this and other useful scripts from their public repository on gitorious.

(Please use the code from the repository, the below may be out of date.)

Compare two strings in a bash script

bash script compare text

if [ $var == "value" ]
then
echo is the same
fi

http://www.tech-recipes.com/rx/209/bournebash-shell-scripts-string-comparison/

(Numbers are -eq)

Check to ensure at least one parameter passed in to bash script

bash script check for existence of any argument

if [ $# -ne 1 ]
then
echo "USAGE: scriptname arg1 arg2"
return
fi

Syndicate content