Created
December 4, 2014 23:59
-
-
Save vermiculus/f7e23c2f1945d5165168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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