bash pipes - I am trying to call script from c#

前端 未结 1 759
情话喂你
情话喂你 2021-01-26 18:37

I have a cygwin bash scripts that works:

#!/bin/sh
cd myc
cp Stats.txt Stats.txt.cpy;
cat Stats.txt.cpy | sort -n -k1 | gawk \'{sum+=$2; print $0,sum}\' > St         


        
相关标签:
1条回答
  • 2021-01-26 19:24

    It was a path issue.

    You need to set path in the script - otherwise it uses a different "non-cygwin" path and gets wrong commands.

    0 讨论(0)
提交回复
热议问题