w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Equivalent bash statment without closing parenthesis

If your current command works, simply rewrite it as a function:

edit() { $EDITOR <(sed -e "s/x1B[[0-9;]*[JKmsu]//g" <
"$1"); }; edit

However, the better approach is to create a script that does what you want to do and invoke that. This allows other programs to invoke the editor without passing it through a shell, which not all of them do.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.