Intuit OnCampus OA 2026 | 16th march 2026 | Coding Assessment | Complete Solutions & Tips | String Parsing & File Sizes |

Intuit · Question · Posted Mar 2026

Question: Bash: Maximum Size File Problem Statement: 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 1024 Aug 1 12:00 file1.txt -rw-r--r-- 1 user group 2048 Aug 1 12:00 file2.txt -rw-r--r-- 1 user group 512 Aug 1 12:00 file3.txt The ...

The full answer & interview discussion are available to premium members.

Log in Create a free account