$ big 100 1428749 524288 -rw------- 1 user staff 268435456 Mar 1 09:53 ./Desktop/centos-5.5-2.6.4/564d24cb-9632-8f69-724d-15622e3b68fc.vmem 1427799 2065664 -rw-r--r-- 1 user staff 1057619968 Mar 9 22:30 ./Desktop/centos-5.5-2.6.4/CentOS-min-s001.vmdk 1427808 2334464 -rw-r--r-- 1 user staff 1195245568 Mar 9 22:30 ./Desktop/centos-5.5-2.6.4/CentOS-min-s002.vmdk ...
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
big(){ find . -size +${1}M -ls;}
Also, you probably want to avoid putting $1 in an alias, because it doesn't do the same thing as in a function. Your "BIG $1" on the end will cause your alias to not function correctly if $1 is set in your shell. For example:set -- foo
echo $1
foobig 100
find: Invalid argument `+fooM' to -size