Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 363 Bytes

Run bash scripts

# should exist
Sys.which('bash')
Sys.which('sh')

Does bash work?

echo hello world
echo 'a b c' | sed 's/ /\|/g'
# number of lines
awk 'END{print NR;}' 027-engine-bash.Rmd

How about sh?

# run wc on all engine examples
ls | grep engine | head -n8 | xargs wc