Timeline for How to use a bash function like a regular command in a pipe chain?
Current License: CC BY-SA 3.0
        8 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2015 at 7:19 | history | tweeted | twitter.com/#!/StackUnix/status/598749397032251392 | ||
| May 14, 2015 at 4:49 | answer | added | spuk | timeline score: 1 | |
| May 13, 2015 at 19:39 | vote | accept | norritt | ||
| May 13, 2015 at 19:37 | answer | added | dhag | timeline score: 2 | |
| May 13, 2015 at 19:28 | comment | added | norritt | Nope you're not misunderstanding it - removing echo and quotes actually does the trick. I actually can't believe it was so easy. The quoting and bracing in bash gets me every time. If you post your comment as answer I'll mark it as correct and give you a vote. | |
| May 13, 2015 at 19:11 | comment | added | dhag | 
        
            
    I must be misunderstanding your question, but what happens if you replace echo "cat $1 | pv -w 20 -s ${__size}" with just cat $1 | pv -w 20 -s ${__size} in your function definition?
        
     | 
|
| May 13, 2015 at 18:54 | review | First posts | |||
| May 13, 2015 at 19:08 | |||||
| May 13, 2015 at 18:50 | history | asked | norritt | CC BY-SA 3.0 |