We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a358cdc commit ed45c03Copy full SHA for ed45c03
linux-shell/00059_HackerrankLinuxShell.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-# 'Awk' - 1
4
-# https://www.hackerrank.com/challenges/awk-1/problem?isFullScreen=true
+# 'Awk' - 2
+# https://www.hackerrank.com/challenges/awk-2/problem?isFullScreen=true
5
6
-awk '(NF < 4) {print "Not all scores are available for "$1}'
+awk '{print $1, ":", ($2 < 50 || $3 < 50 || $4 < 50 ) ? "Fail" : "Pass"}'
0 commit comments