I have test.txt file, which contains the lines below:
Period 1
Period 2
Period 3
........
.
.
.
Period 10
Period 11
Period 12
.
.
.
Likewise I have 18 rows inside the test.txt file.
Now I need to create the new file from this test.txt such that when I give 'Period 1', it should show only "Period 1" row alone in new file.
I am facing issue here: when I'm trying to do grep "Period 1" > newfile.txt, it gives all the period which start with "Period 1", "Period 10", "Period 11", and so on.