Write a program that takes a filename as argument checks


Problem

1. Write a program that uses a loop to print from an array all the 12 months in the form 1. Jan ....., where each entry is on a separate line.

2. Why doesn't this one-liner execute? Is absence of quoting the problem? perl -e ‘%arr = (N, North) ; print %arr{N}'

3. Write a program that takes a filename as argument, checks whether the file exists, and prints binary if the file is binary.

4. Using a regular expression, write a one-liner to display the contents of a file after capitalizing every word.

5. Write a program to display from /etc/passwd the line that has 1 as the UID.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that takes a filename as argument checks
Reference No:- TGS02671866

Expected delivery within 24 Hours