First Three Lines
Print the first three lines of log.txt.
Example 1
log.txt
INFO job 1 WARN disk 3 INFO job 2 ERROR mail 7 INFO job 3
prints
INFO job 1 WARN disk 3 INFO job 2
Constraints
log.txthas 3 to 25 lines
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Hello, NameBeginner
- How Many ErrorsBeginner
- Into a New FolderBeginner
- Last Two LinesBeginner
- Lines With ERRORBeginner
- One After the OtherBeginner
- Only the Text FilesBeginner
- Sort the NamesBeginner