Classic technique (escape metacharacters):
I tried various tricks with '
I would have thought so. However, there is an alternative, namely:
Indeed, if you read the 'portable shell' guidelines for the
Where the actions are as trivial as echoing, this isn't bad. When the action block to be repeated is multiple lines, the repetition is too painful and one of the earlier versions is preferable. |
转载于:https://www.cnblogs.com/zaric/p/3412645.html