Skip to content

Commit 9adbfc3

Browse files
Merge pull request #27 from LearnYouSomeComputer/ch2
Chapter 2: Add a few missing commands
2 parents 6ba55f6 + 81ece15 commit 9adbfc3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

02-Bash-Basics.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,17 @@ How would you print the top three scores from the file?
527527

528528
- `-n num_lines`: Display `num_lines` lines, rather than the default of 10
529529

530+
`sort [<filename>]`: Sort lines of a file or STDIN
531+
532+
- `-u`: Remove duplicate lines from output
533+
- `-n`: Perform numerical sort instead of string sort
534+
535+
`wc [<filenames>]`: Count characters, words, and lines in files or STDIN
536+
537+
`echo <string>`: Print string to STDOUT
538+
539+
- `-e`: Interpret backslash escapes (i.e., `\n` is printed as a newline)
540+
530541
`man <command>`: Display manual page for a command
531542

532543
Special Filenames:

0 commit comments

Comments
 (0)