Life Log & Rants
Showing posts with label
bash
.
Show all posts
Showing posts with label
bash
.
Show all posts
Saturday, September 10, 2011
Download a file from FTP in single command in Bash
I was just looking to download a file in bash from a FTP Server.
The following will work:
wget ftp://<username>:<password>@<ftp-server-url>/<file-name>
Tuesday, April 26, 2011
Get the previous date in month-dd-yyyy formation in unix
Another nifty command in Bash to do so in the required format of month-dd-yyyy
date -d 'yesterday' +%B-%d-%G
Other Formats are mentioned at
http://unixhelp.ed.ac.uk/CGI/man-cgi?date
Older Posts
Home
Subscribe to:
Posts (Atom)