Sign in
code
/
plexi
/
0e933f493c9a28534f0f43a98468990956f70327
/
.
/
examples
/
filesystem-get-doc-contents.sh
blob: 557c5f0543400a50b5f2e534279ffbd338900fcb [
file
] [
log
] [
blame
]
#!/bin/sh
# Example gives bytes of file with particular id.
dir
=
"/tmp/foo-bar/"
id
=
"$1"
fn
=
"$dir/$id"
echo
-
e
"GSA Adaptor Data Version 1 [\n]"
echo
"id=$id"
if
test
-
f
"$fn"
&&
test
-
r
"$fn"
;
then
echo
"content"
cat
"$fn"
else
echo not
-
found
fi