Use bash awk sed to extract text field in file

I have a file like this (odd lines and even lines have different type content):

— File Begin —

try to upload UI/uploaded/2010.png


try to upload UI/uploaded/2011.png


— File End —

What I want to get is:

I want to use bash(awk,sed could be used if need) to do this.

When I use awk, I could not figure out the right regular expression for
field separator(I want to use , space : ” [ ] { and } for field separator, so the last field will be what I want).
The best answer will be giving the right separator for awk.

Or fallback to sed(replace all the , ” [ ] { } to space).

Source: bash

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.