Microsoft
Software
Hardware
Network
Question : Linux string manipulation.
I am looking for a Linux command or script that retrieves a particular string from a file and write it to another file.
The file to be searched is a log file that may contain e-mail addresses in the following format “no.reply+something+thisst
ring@domai
n.com”
I need to retrieve "thisstring" wherever found and write it to another file.
My approach was to search for “no.reply+” substring using grep command and then use another command that retrieves the string between the second + sign and the @ sign, but I need help writhing the complete command.
Any help is appreciating it.
Thanks in advance.
Answer : Linux string manipulation.
grep "no.reply+" filename | cut -d "+" -f 3|cut -d "@" -f 1
That will cut again at the @ sign and return the first field. thisstring.
Random Solutions
MS BI sample project
Exchange 2010 Mailbox Role Installation Error
User activity in solaries
Help using .delay
Registry, Winlogon, KEY_WOW64_64KEY errors
Automatically Adding Text to Cells
Terminal server 2008 R2 Pinned Taskbar Links
Microsoft Exchange Outlook Anywhere SSL Issue
OpenOffice 3.2 GPO Install Problem
I want to put a small instruction in the middle of my SharePoint survey. I want to say "If you answered "No" to any of the questions above then please answer the questions below. How?