I am learning sed, so please bear with me. I am trying to use sed to find all files containing "install" in a log and output to a new file. Here's an example of the file being searched:
2016-05-04 07:38:46 install libcairomm
2016-05-05 07:38:47 status half-installed libcairomm
2016-05-05 07:39:49 status unpacked libcairomm
So, it would output the first line only. Here is what I have been trying with some other variations as well:
sed -n '/[0-9]{2} install/p' > new.txt
All the variations of this I have tried have not done anything. It creates an empty file.
Any help would be appreciated :)