←back to thread

Twelve Days of Shell

(12days.cmdchallenge.com)
256 points zoidb | 1 comments | | HN request time: 0.2s | source
Show context
derrida ◴[] No.46190909[source]
Hey this doesn’t work : first solution “ls -al” which I use all the time to list directories was rejected in the second question I used awk and was rejected it expected grep

I think a beginner could be doing it right but then be told they are wrong as you aren’t evaluating actual commands

Best would be to like actually run it* and then check solutions out with awk that it pattern matches

* aka give me a shell ok worth a try lol xD

Edit: also I was expecting something a bit more challenging (also that is correct) to like exercise the brain for those of us that use shell (this is hacker news) something that takes a few minutes and isn’t just commands used all the time

replies(3): >>46191847 #>>46192742 #>>46194940 #
comprev ◴[] No.46191847[source]
"ls" shows only visible files whereas "ls -a" also displays those starting with a dot. Given the question doesn't that make your answer the correct one?
replies(2): >>46193156 #>>46193179 #
1. zenoprax ◴[] No.46193179[source]
`la -A` will also show hidden files but excludes the "." and ".."

I prefer that way in theory but a capital "A" is not as quick/easy to type.