I know that these two questions have been considered many times, but I canβt figure out how to mix two teams in one:
get a line between quote
sed 's/[^"]*"\([^"]*\)".*/\1/' "$file"
get line 2 from file
sed '2q;d' "$file"
Thank you very much for your help.
EDIT:
input files:
#!/bin/bash
some others lines with quoted string
Output
/path/to/folder/with/file.ext
source
share