Bash print only lines containing. Or use sed: sed -n … I have text file.