Split lines with a text file based on character range:
eg. get the date field from this - LS7_ETM_NBAR_P54_GANBAR01-011_108_084_19990910
cut -c39-42 diff.sorted.txt
1999
eg. get split based on a delimeter and return part of the split array
cut -d '_' -f 8 diff.sorted.txt
19990910
No comments:
Post a Comment