Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

scp to my journal (See related posts)

// copy entries to journal

// simple snippet that shows taking a command line variable and doing a longer command that includes that variable

#!/bin/bash        
if [ -z "$1" ]; then 
    echo usage: $0 "MMM (jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec)"
    exit
fi
MMM=$1
scp *.html robnugen.com:$MMM"_journal"

You need to create an account or log in to post comments to this site.