Dear All,
I am using the grep command..
bash-3.2$ grep TR2 /mydata/MISE/MAPPLI/USD/mytransfer/_SRY10566_124005.mail | cut -d "/" -f2-|cut -d ":" -f2
The output is
/my_repo/*/MYOPS/SR123/SRY78623/RDM/RY_USD
bash-3.2$ abc=$(grep TR2 /mydata/MISE/MAPPLI/USD/mytransfer/_SRY10566_124005.mail | cut -d "/" -f2-|cut -d ":" -f2)
The output is as below
bash-3.2$ echo $abc
/my_repo/mine001/MYOPS/SR123/SRY78623/RDM/RY_USD /my_repo/mine001_RO/MYOPS/SR123/SRY78623/RDM/RY_USD
I undeestand that now the grep is not doing grep from mail body instead it doing grep on Directory structure..
Please let me how we can restict in... in second Case...
I dont want the value /my_repo/mine001_RO/MYOPS/SR123/SRY78623/RDM/RY_USD in second grep case