4 ms·
Yep, but you have bug in your awk one-liner.
by shpeedy 7y ago
Yep, but you have bug in your awk one-liner.
- wahern 7y agoIf you mean the lack of quotations, then the behavior is well-defined and is presumably what was intended. Per POSIX, > The print statement shall write the value of each expression argument onto the indicated output stream separated by the current output field separator (see variable OFS above), and terminated by the output record separator (see variable ORS above). The default value for OFS is <space> and for ORS, <newline>.
- demiol 7y ago> If you mean the lack of quotations, No, lack of commas in output and broken filenames with spaces.
- just_myles 7y agoI see your point regarding spaces in names. Suppose I could use FILENAME. But I think my point was made.
- just_myles 7y agoIn my defense I did this fairly quickly (Which was the point.) and was not trying to illustrate proper syntax (I mean it does run and does produces an output.). ls -l | awk '{print $9 "\t" $5}' That is about as much as i'm willing to do for this.