Page MenuHomeDevCentral
Paste P185

arc-paste-file
ActivePublic

Authored by dereckson on Apr 6 2016, 16:48.
Tags
None
Referenced Files
F29179: arc-paste-file
Apr 6 2016, 16:48
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 arc-paste-file.