2 ms·
Everyone tends to rag on Perl, but it's excellent in this space. Edit: The equivalent of above would be: #!/usr/bin/perl my $shell=(getpwuid($>))[8]; pr
by tyingq 6y ago
Everyone tends to rag on Perl, but it's excellent in this space.
Edit: The equivalent of above would be:
#!/usr/bin/perl
my $shell=(getpwuid($>))[8];
print "$shell\n";
Though it does have simple syntax for pipes as well.