Saves to a PDF with title and alt text of comic. As asked for on http://bbs.archlinux.org/viewtopic.php?id=91100 Change xkcd.com to dynamic.xkcd.com/comics/random for a random comic.
I know this sucks in some way but if someone can improve it please be my guest Show Sample Output
With this cron, rsync begins to sinchronize the contents of the local directory on /[VIPdirectory] with the directory /backup/[VIPdirectory] on the remote server X.X.X.X. Previously we need working on public/private-keys ssh to guarantee the acces to the remote server on X.X.X.X Show Sample Output
The command shows the real power of the pdftk tool, you can do basically everything you want with multiple pdf's. In the command a book is created from chapters, headings and covers.
Create a tarball on the client and send it across the network with netcat on port 1234 where its extracted on the server in the current directory.
Read all contents from current directory and display to stdout.
Read all contents from current directory and display it on stdout.
find all files in cur dir add to url and append to file
Create tarball on stdout which is piped to tar reading from stdin all over ssh
You WILL have problems if the files have the same name.
Use cases: consolidate music library and unify photos (especially if your camera separates images by dates).
After running the command and verifying if there was no name issues, you can use
ls -d */ | sed -e 's/^/\"/g' -e 's/$/\"/g' | xargs rm -r
to remove now empty subdirectories.
same as above but dumps the stream to a file.
Mask the user agent as firefox, recursively download 2 levels deep from a span host with a maximum of 1 redirection, use random wait time and dump all pdf files to myBooksFolder without creating any other directories. Host will have no way of knowing that this is a grabber script.
Parses your exported bookmarks to generate a clean list of http lines and passes it on to clive to try to download the video file from various sites.
I prefer the ip command to ifconfig as ifconfig is supposedly going to be deprecated. Certain IP address aliases can only be seen with the ip command (such as the ones applied by RHCS).
the database client sqlplus generate results one line per row. This function convert the sqlplus output to show the result vertically, in layout: Column_name=[Column_Value]. Very usefull for scripts. Show Sample Output
mixing tabs and spaces for indentation in python would confuse the python interpreter, to avoid that, check if the file has any tab based indentation.
"^V" => denotes press control + v and press tab within quotes.
cat improper_indent.py
class Tux(object):
print "Hello world.."
grep " " improper_indent.py
print "Hello world.."
no need for rpm, no need for piping to another command. also no real fu but lacking in unnecessary complexity and distro specific commands.
Exploit that RPM database just sitting there, taking up space. Show Sample Output
a simple trick to do floating point operations in shell, use awk. You can evaluate any complicated expressions which can be evaluated in C. Show Sample Output
I constantly need to work on my local computer, thus I need a way to download the codeigniter user guide, this is the wget way I figured.
This should work on any RPM-based distribution. It's more reliable than trying to parse the content of the files. 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: