This will download a video when given the link and it will extract the audio from the video. The filename will be the same as the video's title. File extension in mp3.
Hit an API with curl returning a random quote, then parse the result with jq. Show Sample Output
No sample. Try it and see the magic!
Remove clear; sleep 5 and echo for not doing sample!
1) The last sed expression ensures the unicast/multicast bit is set to zero 2) The greedy space replacements are for portability across UNIX seds Show Sample Output
Enable it again: reg delete "HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f Show Sample Output
Use variable: letters=("a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z")
Avoid eval by creating an variable by adding this to a variable and then call it by $cmd
_Exit __clone2 _exit _llseek _newselect _syscall _sysctl accept accept4 access acct add_key ...
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: