Displays last month, current month, and next month side by side. Show Sample Output
Here is another way to show the path, one directory per line. The command `tr` translates the colon into the new line, taking input from the $PATH variable Show Sample Output
The Linux's `cal` command is nice, but there are times when I need to see two months side by side and this command will do it. Show Sample Output
Find recursively all files in ~/Notes with the extension '.md' and pipe that via xargs to rename command, which will replace every '.md' to '.txt' in this example (existing files will not be overwritten).
HDMI-1 is the interface in the example, which can be obtained just by typing xrandr and surfing through the output. There are a hell lot of configurations that can be done but I prefer auto because it works in most cases.
Lifesaver
Show Sample Output
Pluralize a word, aka change from single to multiple; text formatting.
echo hamburgler | pluralize
Show Sample Output
List out all the names from the zip file and pass it to xargs utility to delete each one of them
Formats the output from `ioreg` into XML, then parses the XML with `xmllint`'s xpath feature. Show Sample Output
https://stackoverflow.com/questions/10768160/ip-address-converter Show Sample Output
I couldn't find movie library on any of the SQLlite Stremio databases, but on ~/.config/stremio/backgrounds2 the background image filenames corresponds to IMDB URL. So I foreach files and wget HTML title of each movie and save it to a file. This will retrieve all movie names, not just the Library.
Useful for running long commands with the laptop lid closed and screen off. Also see Gnome extension Caffeine. https://extensions.gnome.org/extension/517/caffeine/
This snippet allows to process the output of any bash command line by line.
The file should be a text file formatted like this example: 1 Introduction 10 Chapter 1 +10 Chapter 1, Part A +25 Chapter 1, Part B ++25 Chapter 1, Part B, Subsection 1 ++27 Chapter 1, Part B, Subsection 2 +30 Chapter 1, Part C 50 Chapter 2 70 Chapter 3 The '+' indicates a sub-level heading (multiple +'s for multiple sub-levels). The first number on the line is the source page reference number. The rest of the text on the line is the name of the chapter / subheading.
Converts an OGG file to MP3 at desired quality, preserving the id3v2 tags.
You need to use the aws ec2 describe instances to get the JSON file. Show Sample Output
Apart from an exact copy of your recent contents, also keep all earlier versions of files and folders that were modified or deleted. Inspired by the excellent EVACopy http://evacopy.sourceforge.net 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: