My code below will print only the email address from all lines. I want to convert it with sed or awk.. also what if i just want to find only filenames.
So - do you want e-mail addresses and / or / xor file names? Seems you go for sort of MS style files? Please be aware that on *nix systems, ". extension" is ad libitum, and file names can contain nearly any character except the slash / . It may become difficult to identify the file names in a line...
You are welcome. I made one correction in my post.. Added underscores which are also word characters..
-E Use extended regular expressions
-o Print only the matched (non-empty) parts of a matching line,
with each such part on a separate output line
[[:alnum:].-]+ One or more alphanumeric character or underscore, dot or dash.
\. A literal dot
(bin|exe) Either the string "bin" or the string "exe"