Someone has accidentally corrupted information about the films. All that you know is that the film "The Muppets" has a wrong release year.
Using grep, print the line with the wrong information and its number from the file /tmp/movies.txt.
Someone has accidentally corrupted information about the films. All that you know is that the film "The Muppets" has a wrong release year.
Using grep, print the line with the wrong information and its number from the file /tmp/movies.txt.
Sample Input 1:
2012 - Safe House
2008 - Ponyo
1000 - The Muppets
2011 - Attack The Block
2015 - Bridge of SpiesSample Output 1:
3:1000 - The MuppetsCreate a free account to access the full topic