Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

help with sed
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

help with sed

camargcamarg Member
edited October 2012 in Help

I'm trying to replace

(date('n')!= 8 && date('n')!= 9)

with

(false)

I've tried

sed -i 's/\(date\('\''n'\''\)\!=\s8\s\&\&\sdate\('\''n'\''\)\!=\s9\)/\(false\)/g' file

without success

Comments

Sign In or Register to comment.