Page MenuHomeDevCentral
Paste P185

arc-paste-file
ActivePublic

Authored by dereckson on Apr 6 2016, 16:48.
#!/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 edited the content of this paste. (Show Details)Apr 6 2016, 16:48
dereckson changed the title of this paste from untitled to arc-paste-file.