I have the following text file and I want to display only the lines where "Vacancy" field (or column) is set to "YES".
$ cat movielist
[Showtimes],[Movie Title],[Vacancy]
1300 2Oct,X-files,Yes
1600 2Oct,Xmen,No
1700 2Oct,Spiderman, Yes
Code:
1 show_file()
2 {
3 echo "Show file is called";
Leave a comment: