This commands will make it easier to select only common items between two files being compared. If your lines start with things other than lowercase a-z, adjust this Regex appropriately. Number of lines in the output has been set to no more than 10000, and should be adjusted as needed.
to clean up the extra lines Show Sample Output
Same thing as above, just uses fetch and ipchicken.com Show Sample Output
search argument in PATH accept grep expressions without args, list all binaries found in PATH Show Sample Output
Handles everything except octets with 255. Ran through ip generator with variable octet lengths.
Same thing just a different way to get there. You will need lynx
Thanks for the submit! My alternative produces summaries only for directories. The original post additionally lists all files in the current directory. Sometimes the files, they just clutter up the output. Once the big directory is located, *then* worry about which file(s) are consuming so much space.
This is a slight variation of an existing submission, but uses regular expression to look for files instead. This makes it vastly more versatile, and one can easily verify the files to be kept by running ls | egrep "[REGULAR EXPRESSION]"
Really, you deserve whatever happens if you have a whitespace character in a file name, but this has a small safety net. The truly paranoid will use '-i'.
Returns any file in the folder which would be rejected by Gmail, if you were to send zipped version. (Yes, you could just zip it and knock the extension off and put it back on the other side, but for some people this just isn't a solution) Show Sample Output
Shorter way to find the device for a given mountpoint
The above one liner can be used to determine what card/driver is Xorg currently using. For additional information, see http://goo.gl/mDnWu Show Sample Output
Discover host and url of media files (ex. flv, mp4, m4v..). It locate the urls of audio and video files so that they can be recorded.
speaks out last twitter update using 'say'
Very useful for finding all the source code that should be compiled.
Use meaningful exit codes change "source" to "cat" to view output instead of assigning Show Sample Output
Function that searchs a process by its name and shows in the terminal. * Shows the Header for reference * Hides the process 'grep' from the list * Case sensitive 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: