Grep in Agave To find around keywords After grep -A 10 magnetic output-FM-20GPa.txt Before grep -B 10 magnetic output-FM-20GPa.txt Before and After grep -A 10 -B 10 magnetic output-FM-20GPa.txt