Morning all,
I'm not very familiar with awk or filtering out values from a particular file.
The particular value i would like to extract from the file between "\n"
\nGenerated password: password\n
Is there a site i could potentially have a look at to help with this?
I managed to extract the information i need but having a bit of a difficult time to remove \n from the beginning and end of the line.
What i attempted: awk -F'\n' 'print $1'
Snippet of the output:
time="2023-01-23T18:40:06+02:00" level=info msg="Browser will open URL in 5 seconds"
time="2023-01-23T18:40:06+02:00" level=info msg="message"
time="2023-01-23T18:40:06+02:00" level=info msg="Open this link manually in a browser tab if it does not open."
time="2023-01-23T18:40:18+02:00" level=info msg="File encrypted \"file.txt\" in file.zip.\nGenerated password: mypassword\n"