开发者

what is wrong in this command ....can you please locate the error in this command

 orig_file = PRC_19_000011061354_01147_20110323.gz
 $( print $orig_file | cut -d"_" -f4 )

I need the answer开发者_如何学Go as 01147 which is the fourth field...


Drop the spaces around = in

orig_file = PRC_19_000011061354_01147_20110323.gz

and replace print with echo.


Your code works for me. You have to remove the spaces around = to make the variable assignment work, though.


This should work:

orig_file=PRC_19_000011061354_01147_20110323.gz
$(echo $orig_file | cut -d"_" -f4)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜