Conversation
Notices
-
Embed this notice
menherahair (menherahair@eientei.org)'s status on Friday, 11-Apr-2025 06:42:08 JST menherahair
bash parameter expansion pattern removal syntax mnemonics for beginners
as seen on your keyboard:
# - start
$ - here's the money
% - end
${x#ass} expands to $x with "ass" removed from the beginning of $x
${x%ass} expands to $x with "ass" removed from the end of $x
${x##*/} is like retarded $(basename $x)
${x%\.*} may get rid of file extension-
Embed this notice
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Friday, 11-Apr-2025 06:42:07 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face:
@menherahair can you do something like this but for plan 9 rc plz -
Embed this notice
menherahair (menherahair@eientei.org)'s status on Friday, 11-Apr-2025 06:58:01 JST menherahair
@nyanide as soon as I write few thousands lines of rc and get hang of it (I'm on 0 rn)
-
Embed this notice