Company: Intuit_10_feb
Difficulty: medium
Maximum Size File Problem Description You are given the output of the Unix ls -l command. Each line describes one entry (a file, a directory or another kind of entry) and includes its size in bytes. Write a Bash script that prints the name of the entry with the largest size . Complete the function find_max_size_file . Its argument $1 is the ls -l output as a multi-line string (one entry per line). It must print the name of the largest entry. The provided main reads standard input and calls the function. Each line has exactly 9 fields, separated by one or more spaces: permissions links owner group size month day time-or-year name Field 5 is the size in bytes and field 9 is the name. If several entries share the largest size, print the one that appears first in the input. (inferred -- the source does not say how ties are broken; the original statement and the original solution both keep the first entry) Every entry is a candidate, whatever its type: directories ( d... ), regular files (