How to extract values from line?
I have a file in which every disk path is stored in disk parameter . However this file is dynamic and number of disk numbers can increase/decrease .
Is there a way to store this disk path values in file .
For example
This is a sample file .
disk = ['file:/OVS/repository/file1.img,xvda,w', 'file:/OVS1/repository/file1.img,xvdb,w']
I want diskpath.txt to be filled like
/OVS/repository/file1.img
/OVS1/repository/file1.img
i tried awk with my limited knowledge but couldn't able to figure the solution.
please help .
|