The Biggest File
Print the name of the file in this folder that holds the most bytes, and after it, on a second line, the number of bytes it holds.
Example 1
a.txt
tiny
b.txt
a good deal longer than the rest
c.md
middle one
prints
b.txt 33
Constraints
- 2 to 8 files, no folders
- One file is bigger than every other
- Names have no spaces
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Totals per GroupHard
- Word Count TableHard
- Count the LinesBeginner
- Count the WordsBeginner
- First Three LinesBeginner
- Hello, NameBeginner
- How Many ErrorsBeginner
- Into a New FolderBeginner