What does - do in bash? Like sort - or uniq -?
Asked
Active
Viewed 44 times
-3
jonrsharpe
- 115,751
- 26
- 228
- 437
JoeSlav
- 4,479
- 4
- 31
- 50
1 Answers
0
from the man pages of sort:
With no FILE, or when FILE is -, read standard input.
Chris Maes
- 35,025
- 12
- 111
- 136
-
Thanks. This then begs the question of what's the difference between sort and sort - when I just do like: cat something | sort ..vs.. cat something | sort - – JoeSlav Nov 26 '19 at 07:59
-
According to the man page this doesn't change anything. When I test this it gives the exact same output, so **nothing**. – Chris Maes Nov 26 '19 at 08:03
-
thought so. thanks! – JoeSlav Nov 26 '19 at 08:05