Changing how functions are called

Old way:

    functionName CONTENT argument1 argument2

New way:

    echo -n "$CONTENT" | functionName argument1 argument2

This follow the Unix style more closely.
This commit is contained in:
Tyler Akins
2017-11-13 10:13:03 -06:00
parent e78b15d95b
commit ad98577c42
7 changed files with 25 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
No args: 1 '' - done
One arg: 2 one - done
Getting name in a string: 2 The\ name\ is\ Willy - done
No args: 0 '' - done
One arg: 1 one - done
Getting name in a string: 1 The\ name\ is\ Willy - done
Reverse this: edcba