Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P186
arc-paste-file
Active
Public
Actions
Authored by
dereckson
on Apr 6 2016, 16:49.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F29180: arc-paste-file
Apr 6 2016, 16:49
2016-04-06 16:49:00 (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)
Apr 6 2016, 16:49
2016-04-06 16:49:00 (UTC+0)
dereckson
changed the title of this paste from untitled to
arc-paste-file
.
Log In to Comment