Skip to content
Snippets Groups Projects
Commit 4b814c27 authored by Holger Brandl's avatar Holger Brandl
Browse files

added snippet spinner

parent f9e237a8
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,28 @@ spinr(){
rm *md
}
spinsnip(){
if [ $# -ne 1 ]; then
>&2 echo "Usage: spinsnip <report name>"
return
fi
reportName=$1
tmpR=$reportName.R
echo "processing $tmpR..."
head $tmpR
## http://stackoverflow.com/questions/11454343/pipe-output-to-bash-function
cat > $tmpR
spinr $tmpR
rm $tmpR
}
#testsnip(){
# cat > test.txt
#}
#' cd /home/brandl/mnt/mack/project-raphael/reports/spin_report
#' source <(curl https://dl.dropboxusercontent.com/u/113630701/datautils/R/utils/spinr.sh)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment