Replace a substring in file
(20, 'm') in file: get_session.sql to (35, 'm'). 20 can be any number.
sed -i "s/([0-9]\+,'m');/(35,'m');/" get_session.sql && cat get_session.sql…
↧