Computer scienceSystem administration and DevOpsCommand lineText processing

Grep basic options

Accident

Report a typo

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 Spies

Sample Output 1:

3:1000 - The Muppets
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic