Page MenuHomeDevCentral
Paste P134

/home/dereckson/bin/arc-paste-file
ActivePublic

Authored by dereckson on Nov 21 2015, 00:59.
Tags
None
Referenced Files
F13166: /home/dereckson/bin/arc-paste-file
Mar 12 2016, 03:49
Subscribers
None
#!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: `basename $0` <filename>"
exit 1
fi
FILE=$1
if [ ! -f $FILE ]
then
echo "File not found: $FILE"
exit 2
fi
arc paste --title $FILE < $FILE

Event Timeline

dereckson changed the title of this paste from untitled to /home/dereckson/bin/arc-paste-file.