sed: replace a certain pattern with an arbitrary string in between
Posted
by The Journeyman geek
on Super User
See other posts from Super User
or by The Journeyman geek
Published on 2010-03-19T05:38:58Z
Indexed on
2010/03/19
5:41 UTC
Read the original article
Hit count: 137
I'm trying to clean up a log file for better readability - there's a load of un-necessary stuff there to my needs - i basically have to replace sshd[xxxx] where xxxx is an arbitrary number with, well, either a space or nothing. While i can replace a known string, i have no idea how to do a sed wildcard in this case- So- how do i do that?
© Super User or respective owner