svent / sift

A fast and powerful alternative to grep
https://sift-tool.org
GNU General Public License v3.0
1.6k stars 108 forks source link

Request: replace to allow escaped characters (\t, \n, etc) #119

Open mmicheo opened 3 years ago

mmicheo commented 3 years ago

Currently, a call to swift with echo 'abcde' | sift '(.*)c(.*)' --replace='$1\n$2' results in ab\nde. Instead of a carriage return character, it includes a '\' char followed by a 'n' char.

Expected result: replace \n with a carriage return. ab de