I need to replace a word after multiple spaces :
actually the file contains this string :
local all all
perl -pe 's/(all[\s]+)peer/$1md5/g' your_file