Suppose you want to grep over a filtered list of files. Is there an idiomatic
approach to solve this problem with rc?
I can only think of one erroneous method:
grep pattern `{find . -type f -name '*_test.go'}
I know that it's possible to use find(1)'s -exec option. But find does not
exist in P
Hi,
having newlines in filenames is questionable. However, needing a newline is
quite common. In rc, you don't encode the newline, you just use it:
echo here is my '
' newline.
It's quite common to define it as a variable for easier use, for example:
nl='
'
echo $nl
files=`$nl{ls}
echo $files(
Hi sirjofri,
Thank you for your reply. I was referring to having newlines specifically in
filenames. Sometimes it's not one's own fault that filenames have them.
I wasn't really speaking about the way to represent a newline in rc, although
thanks for details on that problem. My problem is to pa
10.08.2024 23:32:48 kalter...@gmail.com:
> Thank you for your reply. I was referring to having newlines specifically in
> filenames. Sometimes it's not one's own fault that filenames have them.
Sure, that can happen. I just wonder who would do that on any system.
> I wasn't really speaking about