This is a verified interview question from Intuit. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Bash: Maximum Size File" covers key patterns like Other.
"Note: To be done in bash /terminal Given the output of the Unix ls -l command, which includes details like file sizes for multiple files, write a script that identifies and prints the name of the file with the largest size. ### Example Consider the output of the ls -l command as follows: -rw-r--r-- 1 user group 1924 Aug 1 12:00 file1.txt -rw-r--r-- 1 user group 2848 Aug 1 12:00 file2.txt -rw-r--r-- 1 user group 512 Aug 1 12:00 file3.txt The largest file in this output is file2.txt, so the result should be printed as follows: file2.txt  ### Function Description Complete the function find_max_size_file in the editor with the following parameters: string ls_output: a multi-line string containing the output of the Linux ls -l command ### Outputs string: the name of the largest file ### Constraints - The total number of lines can be up to 1,000."
Join thousands of developers practicing for Intuit.