plutherus: (Default)
[personal profile] plutherus
I really like weird-looking computer commands.

Here's one I use frequently in vi:

:%s/\\/\//g

And, in Perl, this is fun, and very useful:

$0 =~ s!^.*/!!;

Anyone who writes a lot of perl scripts in vi will probably recognize both of these immediately.

Profile

plutherus: (Default)
plutherus

December 2021

S M T W T F S
    1 23 4
56 7891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 24th, 2025 03:46 pm
Powered by Dreamwidth Studios