Pages

Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

2011-02-18

Google Releases Command-Line Tool for YouTube, Calendar, Docs and More

"Google has launched a simple but very useful app for computer nerds everywhere: GoogleCL, a command-line tool that allows users to do everything from upload folders to Picasa to adding appointments to a Google Calendar."


http://mashable.com/2010/06/18/googlecl/

2009-10-01

Convert pdf to jpg

This command will convert all .pdf files in a directory into a 800px (wide or height, whichever is smaller) image (with the aspect ratio kept) .jpg.


for file in `ls *.pdf`; do convert -verbose -colorspace RGB -resize 800 -interlace none \
 -density 300 -quality 80 $file `echo $file | sed 's/\.pdf$/\.jpg/'`; done
 
 
http://www.shell-fu.org/lister.php?id=627 

2008-12-09

fold: Wrap Text File / Line / Words To Fit in Specified Width

"fold is really nifty command line utility to make a text file word wrap. This is useful for large number of text files processing. There is no need to write a perl / python code or use a word processor."

http://www.cyberciti.biz/tips/linux-unix-word-wrap-command.html

"For example, following command will wrap input.txt at 60 width columns:

$ fold -sw 60 input.txt > output.txt
"

2008-07-15

Wget local copies of your online research

"You've been diligently bookmarking and clipping web pages using an online service like del.icio.us, Google Notebook or digg. Sure, storing your data on the web is great for from-any-online-computer access, but in an age of cheap, enormous hard drives and powerful desktop search, why not replicate the data you keep on the web to your computer? That way you'll have a copy of every web page as it appeared when you bookmarked it, and a searchable archive of your research even when you're offline.

Using my favorite command line tool wget, you can download the contents of a page of del.icio.us links, diggs or public Google Notebook automatically and efficiently to your hard drive."

http://lifehacker.com/software/download-managers/geek-to-live-wget-local-copies-of-your-online-research-delicious-digg-or-google-notebook-200360.php

2008-06-25

cURL

"curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks."

http://curl.haxx.se/

2008-06-12

Find and Delete File If It Is More Than One Hour Old in UNIX Shell

$ find /home/ftp/incoming/raw/ -maxdepth 1 -cmin +60 -name FileName

http://www.cyberciti.biz/faq/find-file-modification-time/

Unix Command Line Kung Fu

http://www.scribd.com/full/2933314?access_key=key-2lwqsfr2e5s00wi1ztjf

Command the power of the command line

"Learn the basics of the UNIX shell and discover how you can use the command line to combine the finite set of UNIX utilities into innumerable data transforms."

e.g.
find . -type f -print | sort | uniq

http://www-128.ibm.com/developerworks/aix/library/au-unix-commandline/

Linux/Unix commands: How to get copy, conversion power with dd

"... The dd command handles convert-and-copy tasks. Obviously, "cc" would have been a better name, but there already was a command with that name when dd was invented. It doesn't matter since it's a cool command. ..."

http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1244256,00.html?track=NL-386&ad=580327&asrc=EM_NLT_1018603&uid=5288728

Twittering from the Command Line

"For this column, I want to show you how incredibly easy it is to update your Twitter status from the Linux command line, and then noodle a bit on how this could be used for useful, interesting or just mundane tasks. To tantalize you, imagine that you could launch a big software build and have it text your cell phone when it was done, rather than you having to sit at your office."

http://www.linuxjournal.com/content/twittering-command-line

Shellsnippets - Linux Command Reference

Linux Command Reference

e.g. Delete empty directories:
$> find . -depth -type d -empty -exec rmdir {} \;

http://wiki.splitbrain.org/shellsnippets

Unix Toolbox - Unix/Linux Command Reference

"This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing."

Examples:

# uptime # Show how long the system has been running + load
# hostname # system's host name
# hostname -i # Display the IP address of the host.
# man hier # Description of the file system hierarchy
# last reboot # Show system reboot history

http://cb.vu/unixtoolbox.xhtml

Make - An afterburner for your command-line

"Let’s describe make in non-programmer terms - make allows you to sequence commands or create groups thereof.

Uses for make:

Make can be used:

1. To create shorthands for complex (or multi-stage) command pipelines
2. To wrap shell scripts in mnemonics
3. To create temporary environments (even GUI workspaces)
4. To create test harnesses
5. In new and as yet unforseen ways. "

http://ergo.rydlr.net/?p=37

Easily renaming multiple files

"Renaming multiple files seems to be a problem which many newcomers to shell scripting, or administration, have problems with. But once you've done it a few times the actual solutions are very simple."

http://www.debian-administration.org/articles/150

e.g. for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done

rsync Tips & Tricks

"Tips on using the rsync command. rsync performs incremental filesystem transfers, allowing filesystem duplication or snap shotting. Alternatives to rsync on Unix systems include cp -r, pipes between tar commands, or unison."

http://sial.org/howto/rsync/

Learn 10 more good UNIX usage habits

The 10 additional good habits you should adopt are:

* Use file name completion.
* Use history expansion.
* Reuse previous arguments.
* Manage directory navigation with pushd and popd.
* Find large files.
* Create temporary files without an editor.
* Use the curl command-line utility.
* Make the most of regular expressions.
* Determine the current user.
* Process data with awk.

http://www.ibm.com/developerworks/aix/library/au-unixtips/index.html