How to use sed to extract substring

前端 未结 5 1693
执笔经年
执笔经年 2020-12-07 18:23

I have a file containing the following lines:

  
  &         


        
5条回答
  •  悲哀的现实
    2020-12-07 19:18

    Explaining how you can use cut:

    cat yourxmlfile | cut -d'"' -f2

    It will 'cut' all the lines in the file based on " delimiter, and will take the 2nd field , which is what you wanted.

提交回复
热议问题