Skip to content
Snippets Groups Projects
Commit b930af04 authored by Liu Ying's avatar Liu Ying
Browse files

Branch b1_6

b=11679
i=adilger, deen

add osc_to_ost() function
parent 3bc1ff3a
No related branches found
No related tags found
No related merge requests found
......@@ -937,3 +937,15 @@ canonical_path() {
(cd `dirname $1`; echo $PWD/`basename $1`)
}
########################
# helper functions
osc_to_ost()
{
osc=$1
ost=`echo $1 | awk -F_ '{print $3}'`
if [ -z $ost ]; then
ost=`echo $1 | sed 's/-osc.*//'`
fi
echo $ost
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment