Only the Text Files
Print the names of the files in this folder that end in .txt, one per line, in alphabetical order.
Example 1
notes.txt
a
todo.txt
b
photo.png
c
run.sh
d
prints
notes.txt todo.txt
Constraints
- Up to 8 files, at least one of them a
.txtfile - Names are small letters and dots
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Sort the NamesBeginner
- Colour to ColorEasy
- Each Line OnceEasy
- Everything but DEBUGEasy
- Find the Python FilesEasy
- In CapitalsEasy
- Lines Five to SevenEasy
- One More LineEasy