4 ms·
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
by derrida 10mo ago
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
- comprev 10mo ago"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?
- Retr0id 10mo agoIt does seem to actually run the submitted commands, and awk is there.
- derrida 10mo agoSecond question > awk '/^laugh/ { print $0 }' night-before-christmas.txt
- aidenn0 10mo agoGet rid of the caret and it works; it wants lines with laugh, not lines that start with laugh,
- derrida 10mo agoAh cheers thanks, my stupid! (And what's worse - wasted some others attention and even thought what someone took time to create was at fault!) However thankful for kind directness there.
- prmoustache 10mo agoit also doesn't accept the find command.