Sample code for the filtration and the bash script I'll use as the overall driver.