0

I have a string that looks like this
LOCATION="/home/dev/V1.0_MODULENAME_yyyyMMdd_hhss.tar"
I would like to parse it such that i get the module name.
I tried a k shell script with following commands...
MODULE=${LOCATION:20:32}
MODULE=${LOCATION#*_}

First one doesnt compile saying the specified substitution is not a valid command
and the second one gives part of what is required.

Can someone suggest the best way to get the modulename from my string

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by jim mcnamara
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.