The shell extracts the content before the first specified parameter

## Extract the first. The previous content 
i = sftr.realgn.bam echo $ {i %%. *}
Output: sftr
## Extract the first, the previous content n = 123,234,68 echo $ {n %% , *}
Output: 123

  

Guess you like

Origin www.cnblogs.com/xysr-tom/p/12706391.html