Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P134
/home/dereckson/bin/arc-paste-file
Active
Public
Actions
Authored by
dereckson
on Nov 21 2015, 00:59.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F13166: /home/dereckson/bin/arc-paste-file
Mar 12 2016, 03:49
2016-03-12 03:49:18 (UTC+0)
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
edited the content of this paste.
(Show Details)
Nov 21 2015, 00:59
2015-11-21 00:59:28 (UTC+0)
dereckson
changed the title of this paste from untitled to
/home/dereckson/bin/arc-paste-file
.
Log In to Comment