Browse Source

grep 5

master
zeus 4 years ago
parent
commit
c82b89e621
  1. 2
      grep/2_Displaying_matched_pattern/code
  2. 2
      index_grep.yml

2
grep/2_Displaying_matched_pattern/code

@ -1,5 +1,5 @@
echo "Inverting the pattern match"
grep -v "Jordan" $LLO_DATAFILE | head 5
grep -v "Jordan" $LLO_DATAFILE | head -5
echo "Matching the lines that start with a string"
grep -n "^Mi" $LLO_DATAFILE | tail -5

2
index_grep.yml

@ -69,6 +69,6 @@
codehelp: "2_Displaying_matched_pattern/codehelp"
codeanswer: "2_Displaying_matched_pattern/codeanswer"
mimetype: "bash"
points: "" # ELO
points: "1" # ELO
output:
log: "bash"

Loading…
Cancel
Save