commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
When working on a big proeject with SVN, you create quite much files, for now! Can just sit here and type svn add for all of them!
svn status will return a list of all of file which get ?(not add), "M"(Modified), "D"(Deleted)! This code just grep "?" flag, then add it into SVN again!
You can flexibly change file pattern(*.tar.gz) and uncompress command to other job!
Example, remove all files :
for i in *.tar.gz; do rm $i; done
(Just for example, because if you really want to remove file, simply use wildcard like this rm *.tar.gz)
Please take notice that if you are going to use an JPG file for shadow effect,
let change -background none to -background white!
Because -background none make a transparent effect while JPG doesn't support transparent! And when viewing, you will get a bacl box!
So we will use an white background under! We can use other color as well!
rotate: the rotate angle
width, $height: width and height to scale to
birghtness: change brighness