Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Variable replacement #10

Open
gtramontina opened this issue Oct 23, 2014 · 0 comments
Open

Variable replacement #10

gtramontina opened this issue Oct 23, 2014 · 0 comments

Comments

@gtramontina
Copy link

Hey there,
I was writing the readme for one of our internal projects that is experimenting with gasket, and I used the pipeline example from here: http://blog.petersobot.com/pipes-and-filters

cat /usr/share/dict/words |     # Read in the system's dictionary.
grep purple |                   # Find words containing 'purple'
awk '{print length($1), $1}' |  # Count the letters in each word
sort -n |                       # Sort lines ("${length} ${word}")
tail -n 1 |                     # Take the last line of the input
cut -d " " -f 2 |               # Take the second part of each line
cowsay -f tux                   # Put the resulting word into Tux's mouth

Running with gasket, it failed like this:

awk: syntax error at source line 1
 context is
    {print length(), >>>  } <<<
awk: illegal statement at source line 1

Might gasket be replacing the variables wrongly?
Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant