1

sed issue

view story
linux-howto

http://www.unix.com – I'm trying to change a date in a couple of large files using SED. The problem is when I use the -n parameter, it doesn't actually change the file. When I leave out the -n, it sends the whole file to the screen, but it does appear to change it. The problem is, these files are very large and it would take forever to change it like that. I'm sure it is just an issue with my syntax, but here is what I was trying: Code: sed -n 's/20121201/20130101/g' filename Should this update the existing file? If not, how can I do that? Moderator's Comments: (HowTos)