Tuesday 31 January 2023

Linux: Find and replace string in file command sed

Replace /log/oraasmaudit.log with  @@10.19.22.21:514 

Note the \ used to skip /

 sed -i 's/\/var\/log\/oraasmaudit.log/@@10.19.22.21:514/g' /etc/rsyslog.conf



No comments:

Post a Comment

Number of Visitors