sed command replace string in file


sed command replace http to https url in file
sed -i 's|http://abc.com|https://abc.com|g' filename

Sed command replace string in all files of directory
find /home/penguin/data -type f -exec sed -i 's/penguintechnology.in/www.penguintechnology.in/g' {} +

Post a Comment

Mới hơn Cũ hơn