I have a string :
baseline=RAVENPLAT1.5.5.0_1.5.5.0-318_CHASSIS_PKG_193_15-AUG-2014_0350@/vobs/tlv_pvob
I'm trying to get into a variable the subtring untill the '@' sign is it possible?
I have a string :
baseline=RAVENPLAT1.5.5.0_1.5.5.0-318_CHASSIS_PKG_193_15-AUG-2014_0350@/vobs/tlv_pvob
I'm trying to get into a variable the subtring untill the '@' sign is it possible?
Using BASH regex:
OR else using BASH string manipulations:
Hope you've only 1 @ in your string -
Use Parameter Expansion:
Try something like
Not tested - maybe the last character from z will be removed using something similar to: