Company: Intuit_10_feb
Difficulty: medium
Problem Description Given the standard output of the Unix ls -l command (which includes details and sizes for multiple files), write a Bash script that identifies and prints the name of the file or directory with the largest size. Input Input is read from standard input ( stdin ): The first line contains an integer N , representing the number of lines of ls -l output to follow. The next N lines contain standard Unix ls -l output details for various files and directories. Output Print a single string to standard output ( stdout ), followed by a newline: the name of the file with the largest size. Constraints or Notes 1 ≤ N ≤ 1000 The 5th space-separated column of each ls -l line represents the file size in bytes. The 9th space-separated column represents the filename. If there is a tie for the maximum size, print the name of the first file encountered with that maximum size. The script should exit with a status code of 0 upon success. Examples Example 1 Input: 3 -rw-r--r-- 1 user