I am trying to replace a specific line in a txt file with my shell script, for example;
cat aa.txt:
auditd=0
bladeServerSlot=0
When I run my script I would like to change "bladeServerSlot" to 12 as following;
cat aa.txt:
auditd=0
bladeServerSlot=12
Could you please help me?
perl -ne '$_ =~ s/bladeServerSlot\=0/bladeServerSlot\=12/; print $_;' aa.txtperl -pe 's/bladeServerSlot=0/bladeServerSlot=12/' aa.txt.