Define function in unix/linux command line (e.g. BASH)

后端 未结 5 1316
时光说笑
时光说笑 2021-01-04 00:21

Sometimes I have a one-liner that I am repeating many times for a particular task, but will likely never use again in the exact same form. It includes a file name that I am

5条回答
  •  失恋的感觉
    2021-01-04 00:53

    You can get a

    bash: syntax error near unexpected token `('
    

    error if you already have an alias with the same name as the function you're trying to define.

提交回复
热议问题