Skip to content
Snippets Groups Projects
compute.sh 398 B
Newer Older
  • Learn to ignore specific revisions
  • Jakub Beránek's avatar
    Jakub Beránek committed
    #!/bin/bash
    
    
    Jakub Beránek's avatar
    Jakub Beránek committed
    # This script should be executed on each file in the `files` directory.
    
    # The needle that we want to find in the input file. It should be provided as an argument to this
    # script.
    
    Jakub Beránek's avatar
    Jakub Beránek committed
    NEEDLE=${1}
    
    
    Jakub Beránek's avatar
    Jakub Beránek committed
    # TODO: write bash command(s) that will read a file from the HQ_ENTRY environment variable and
    # count how many lines containing `NEEDLE` are in the file. Print the count to standard output.