DEV Community

loading...

Perl One Liner on Linux Command - Replace all word

Yuki Kimoto
Perl and Mojolicious
・1 min read

Replace all apple to orange by Perl one liner on Linux.

find * | xargs perl -pi -e 's/apple/orange/g';
Enter fullscreen mode Exit fullscreen mode

Discussion (0)

Forem Open with the Forem app