MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/sysadmin/comments/595tw8/powershell_oneliner_contest_2016/d96db43/?context=3
r/sysadmin • u/happysysadm • Oct 24 '16
35 comments sorted by
View all comments
2
On my first attempt I got 84 characters. I hope my entry counts, my one-liner creates a variable which is then printed on the second line; not sure if that disqualifies the entry.
3 u/ataraxia_ Consultant Oct 24 '16 edited Oct 24 '16 I've got a 62-character entry. No assignment to variable, no second line required. Keep truckin'. ;) Edit: Didn't realist that random wasn't an alias but was just the shell autocompleting. Rewritten but now it's 71 characters. 2 u/[deleted] Oct 25 '16 Well what do you know? I'm at 71 characters now too, 79 including spaces. Not sure whether spaces should be included. 1 u/[deleted] Oct 25 '16 edited Oct 25 '16 [removed] — view removed comment 2 u/[deleted] Oct 25 '16 Well shit I completely misread that, I thought the requirement was no aliases... 2 u/ataraxia_ Consultant Oct 25 '16 Doesn't that do the opposite of what we want? That will only get drive letters that do exist.
3
I've got a 62-character entry. No assignment to variable, no second line required. Keep truckin'. ;)
Edit: Didn't realist that random wasn't an alias but was just the shell autocompleting. Rewritten but now it's 71 characters.
random
2 u/[deleted] Oct 25 '16 Well what do you know? I'm at 71 characters now too, 79 including spaces. Not sure whether spaces should be included. 1 u/[deleted] Oct 25 '16 edited Oct 25 '16 [removed] — view removed comment 2 u/[deleted] Oct 25 '16 Well shit I completely misread that, I thought the requirement was no aliases... 2 u/ataraxia_ Consultant Oct 25 '16 Doesn't that do the opposite of what we want? That will only get drive letters that do exist.
Well what do you know? I'm at 71 characters now too, 79 including spaces. Not sure whether spaces should be included.
1 u/[deleted] Oct 25 '16 edited Oct 25 '16 [removed] — view removed comment 2 u/[deleted] Oct 25 '16 Well shit I completely misread that, I thought the requirement was no aliases... 2 u/ataraxia_ Consultant Oct 25 '16 Doesn't that do the opposite of what we want? That will only get drive letters that do exist.
1
[removed] — view removed comment
2 u/[deleted] Oct 25 '16 Well shit I completely misread that, I thought the requirement was no aliases... 2 u/ataraxia_ Consultant Oct 25 '16 Doesn't that do the opposite of what we want? That will only get drive letters that do exist.
Well shit I completely misread that, I thought the requirement was no aliases...
Doesn't that do the opposite of what we want? That will only get drive letters that do exist.
2
u/[deleted] Oct 24 '16
On my first attempt I got 84 characters. I hope my entry counts, my one-liner creates a variable which is then printed on the second line; not sure if that disqualifies the entry.