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!)

About this user

Rob Nugen http://robnugen.com

1 total

On This Page:

  1. 1 scp to my journal

scp to my journal

// 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"
1 total

On This Page:

  1. 1 scp to my journal