Free caret may not be what you want in all cases notice:
# probably not the output you want
% echo /usr/bin/`{seq 1 10}.rc
/usr/bin/1 /usr/bin/2 /usr/bin/3 /usr/bin/4 /usr/bin/5 /usr/bin/6
/usr/bin/7 /usr/bin/8 /usr/bin/9 /usr/bin/10 .rc
# explicitly use carets
% echo /usr/bin/file^`{seq 1 10}^.rc
/usr/bin/file1.rc /usr/bin/file2.rc /usr/bin/file3.rc
/usr/bin/file4.rc /usr/bin/file5.rc /usr/bin/file6.rc
/usr/bin/file7.rc /usr/bin/file8.rc /usr/bin/file9.rc
/usr/bin/file10.rc
On Sat, Sep 12, 2026 at 12:12 PM Béla Rösener <[email protected]> wrote:
>
>
> The two ^'s around $user are rc(1) syntax to concatenate the three strings
> into one argument. I don't think they are strictly necessary.
> grep never sees them
>
> On 12. Sep 2026, at 19:20, [email protected] wrote:
>
>
> Still trying to figure out how to be both precise and concise and searchable
> with my topics.
> Two more to come shortly, that are much more important.
>
> Page 217 contains the following, near the bottom:
>
> ; grep -s '^[^:]+:'^$user^':' /adm/users && echo $user exists
>
> I think I understand it pretty well, except for the ^'s around $user. I
> tried removing them,
> but suspect that that just produced a different command that happened to have
> the same output.
>
> The best I can come up with now is that the instruction searches for a line
> that starts with one or more of anything that isn't :, followed by : ... and
> that the ^ before $user means that $user appears immediately after the last
> matched :, as if the first string that got matched has now been cut-off of
> the rest of the string, so that ^ refers to the beginning of the -rest- of
> the string. And that the same logic applies to the ^ before ':'. That logic
> seems a bit crazy to me, but -would- explain that expression.
>
> 9fans / 9fans / see discussions + participants + delivery options Permalink
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tc4b53f9fc2b1c71a-M8661675099a121d0646c5e3d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription