lhunath 1327485588 learn ex is a file editor: ex -sc 's/long john/big ed/ge|x' file lhunath 1328605904 forget lhunath 1328605920 learn ex is a POSIX file editor: ex -sc '%s/long john/big ed/ge|x' file lhunath 1333540445 forget lhunath 1333540479 learn ex is a POSIX command-based file editor: ex -sc '%s/long john/big ed/ge|x' file # See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html lhunath1 1344498511 forget lhunath 1344498553 learn ex is a POSIX command-based file editor: ex -sc '%s/long john/big ed/g|x' file # See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html lhunath 1395860172 forget lhunath 1395860243 learn ex is a POSIX command-based file editor: ex -sc '%s/long john/big ed/g|x' file. If your ex is vi, you probably want ge instead of g and argdo: ex -sc '%s/foo/bar/ge|x' *.txt # See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html lhunath 1395860262 forget lhunath 1395860282 learn ex is a POSIX command-based file editor: ex -sc '%s/long john/big ed/g|x' file. If your ex is vim, you probably want ge instead of g and argdo: ex -sc 'argdo %s/foo/bar/ge|x' *.txt # See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html lhunath 1418138751 forget lhunath 1418138806 learn ex is a POSIX command-based file editor: ex -sc '%s/long john/big ed/g|x' file. If your ex is vim it can also take multiple files using ge and argdo: ex -sc 'argdo %s/foo/bar/ge|x' *.txt # See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html