Closed adamatan closed 7 years ago
Nope, I never planned replacement features for pss because you could always xargs
-combine it with sed
. The design goal for pss is to be able to find source files easily without passing too many options to grep
or find
.
Thanks.
I'm using xargs
extensively, but I have to re-write the regex in the sed
format. Am I missing anything?
Would you be open for a PR that implements the substitution, or would you prefer that I develop it separately?
I've also asked if there's any workaround - Converting regular expression syntax from Python to POSIX
Feel free to develop it separately.
By the way, if the regexp conversion bothers you, you could use perl
instead of sed
I use
pss
extensively because I feel comfortable with Python's regex format, which I prefer over the onesed
uses.However,
sed
is extremely useful for recursive in-place regex replace.Do you think it would be a good idea to add search-and-replace features to
pss
, usingre.sub
?