Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created December 4, 2014 23:59
Show Gist options
  • Save vermiculus/f7e23c2f1945d5165168 to your computer and use it in GitHub Desktop.
Save vermiculus/f7e23c2f1945d5165168 to your computer and use it in GitHub Desktop.
#! /bin/tcsh
cat <<EOF > "temp file"
this is a test file
it has many lines
jk
lol
noob
EOF
thing='marker:cat "temp file"'
a=`echo "$thing" | sed "s/\(.*\):\([^:]*\)/\2/"`
eval $a
#! /bin/tcsh
cat <<EOF > "temp file"
this is a test file
it has many lines
jk
lol
noob
EOF
set thing = 'marker:cat "temp file"'
set a = `echo "$thing" | sed "s/\(.*\):\([^:]*\)/\2/"`
eval $a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment