Forgeting to write "$x" instead of $x is a classic shell programming mistake which results in things breaking for strings that contain whitespace. And it has been a classic mistake since the '70s.
If I were hiring for a job that required shell programming, that'd be one of the questions I'd ask.
- tye
In reply to Re^7: Sort Large Files (wrong)
by tye
in thread Sort Large Files
by Velaki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |