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:
netstat will list all open ports on the system, unix sockets, tcp sockets and udp sockets. the t flag limits to tcp ports the l flag limits to listening ports and the n flag disables the translation of port to service ( ie :25 displayed instead of :smtp ). then grep for the port you are interested in preceeded by a colon.
Processes biglion quantity of sold ebay coupons/bonus codes, so you can know approximate count of users who buyed the coupons and when sales are come up again.
You can change sleep parameter so script will work slowly or faster (default is 5 seconds).
Additional requirements: curl
Standart tools used: awk, date, cat, grep (bash)
Access www.kernel.org and download the last stable linux kernel release.
Replace "foo" with "bar" in all files in current directory recursively
"git grep" automatically excludes untracked files (e.g. compiler output) and files under .git directory. If no directory or file is given, it will recursively search through the current directory.
This command will delete all files and folders except 'skipme'. it could be a file or a folder.
This script can be used to download enclosed files from a RSS feed. For example, it can be used to download mp3 files from a podcasts RSS feed.
Very slick way to check your motherboard manufacturer, product name, version and serial number.
greps your bash history for whatever you type in at the end returning it in reverse chronological order (most recent invocations first), should work on all distros.
works well as an alias
Took one of the samples, added capitalization and removes in between spaces.
The final "echo" is just for readability.
set BLOCK to "title" or any other HTML / RSS / XML tag and curl URL to get everything in-between e.g. some text
Should work with sh, bash, etc.
schema & tables
To export into another backends style, just change backend to one of: access, sybase, oracle, postgres, mysql and sqlite