3 ms·
It would be great if the example in https://youtu.be/tc4ROCJYbm0?t=521 https://youtu.be/tc4ROCJYbm0?t=521 still worked.
by marcodiego 5y ago
It would be great if the example in https://youtu.be/tc4ROCJYbm0?t=521 https://youtu.be/tc4ROCJYbm0?t=521 still worked.
- yjftsjthsd-h 5y agoI strongly suspect that a lot of the commands he's using there are either shell functions or small scripts (or just aliases, actually) to make the example simple to follow. For instance, unique=uniq, lowercase='tr [AZ] [az]' (I think?), etc. You could trivially rewrite it today with a little effort to remake those.
- jraph 5y agoIt almost works. - unique is called uniq, but you can write an alias. I would not be surprised if it was called unique in this video for presentation purposes and uniq already worked at the time. - sort will work as is - lowercase is tr '[:upper:]' '[:lower:]' (you can write an alias). - you need write programs makewords and mismatch and put them in $PATH (the current folder was probably in $PATH at the time but it's not anymore for security reason) sort | uniq can be written sort -u. But the gist of it is still accurate and still applies to today's unix-like systems, which is quite a thing for something that has more than 50 years.