No junk, no pipe, one command, no subcommand - KISS Show Sample Output
Find your default gateway and print it directly output http://www.bilgisayarmatematik.com/ kerim@bayner.com Show Sample Output
Replace $CMDLINE_FILENAME with the name of the cmdline file you copied from /proc/pid, and $COMMAND with the command to execute with those arguments.
The following command creates a pool with a single raidz root vdev that consists of six disks.
Tries to reattach to screen, if it's not available, creates one. created an alias "irc" for it, since sometimes i forget if there already is a screen session running with irssi, this way I avoid creating a new one by mistake.
Substitute nano with your favorite editor, of course.
command creates a pool with two mirrors, where each mirror contains two disks.
Instead of tedious manual mv commands and tabbing, this routine creates a file listing all the filenames in the PWD twice, edit the second instance on each line to the new name, then save the file, the routine does the rest. Feel free to replace nano with your holy war editor of choice. You will get a lot of "mv: 'x' and 'x' are the same file" warnings, these could be cleaned up but the routine works.
Seeing that _sort_ its been used, why not just _use_ it. ;) Show Sample Output
First use find to find all the images that end with jpg or JPG in the current dir and all its children. Then pipe that to xargs. The -I{} makes it so spaces in filenames don't matter. The 1024">" makes it so it takes any image greater in dimension than 1024 and resizes them to 1024 width, but keeping aspect ratio on height. Then it sets the image quality to 40. Piping it through xargs means you avoid the file count limit, and you could run this on your entire file system if you wanted.
This command creates an unmirrored pool using files. While not recommended, a pool based on files can be useful for experimental purposes.
This is useful when you are uploading svn project files to a new git repo.
Like i said, i havent test it yet, all becouse my internet its soo slow, if you try and works please share, also be nice to do it using the direct url link. Show Sample Output
Mac OSX creates resource forks (http://en.wikipedia.org/wiki/Resource_fork) for every file, which are extremely annoying when transferring projects over to an Ubuntu server for instance
Perl variant of echo several blank lines command
created and tested on: ProductName: Mac OS X ProductVersion: 10.6.5 BuildVersion: 10H574 Show Sample Output
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: