lhunath 1312533942 learn grep is a tool used to select lines that match a pattern. It is not a tool to select patterns out of files. If you don't want lines, consider other tools such as sed. lhunath 1359308680 forget lhunath 1359308797 learn grep(1) is a tool used to select certain lines from a stream/file. If you want to extract more specific information, use another tool. Maybe sed/awk or a more specific tool for your purpose.