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)
精彩评论