I have a command which when executed gives following outputs
$ cleartool pwv
Working directory view: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch
Set view: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch
$ cleartool pwv
Working directory view: ** NONE **
Set view: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch
$ ct pwv
Working directory view: ** NONE **
Set view: ** NONE **
I am using this command "cleartool pwv" in a shell script.
view_used=`cleartool pwv`
Thus $view_used is assigned the string "Working directory view: ** NONE ** Set view: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch"
I need to retrieve two values from $view_used such that
working_dir_view="** NONE **" or "abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch"
set_view = "** NONE **" or "abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch"
Could some body help me with this?
Thanks in advance.