Jay Taylor's notes
back to listing indexPrefix to each output of a command on runtime
[web search]
I am trying to make a modular script. I have several scripts/commands which are called from a single script. Examle: My files are allcommands.sh / command1.sh / command2.sh command1.sh outputs command2.sh outputs allcommands.sh runs the scripts command1.sh and command2.sh I want to prefix each output of these two scripts like this:
|
|||||||||||||||
|
|||||||||||||||
I assume that what you are doing in your allcommands.sh is:
Just relace it with
|
|||||||||||||||
|
A minimal example of
With
Quick
|
answered Jul 23 '13 at 11:28
Daniel Andersson
14.9k12540
|
|
Thanks for the clarifications. Your answer was helpful indeed, but @j_kubik's example was just the one I need.
– Ivan Dokov
Jul 23 '13 at 11:39
|
||||
|
Your Answer
asked |
2 years ago |
viewed |
1979 times |
active |
Technology | Life / Arts | Culture / Recreation | Science | Other | ||
---|---|---|---|---|---|---|