On 07/02/2015 08:15 AM, Carlos E. R. wrote:
On 2015-07-02 13:57, Anton Aylward wrote:
No, really. Given the data file, this is shell programming 101. I wouldn't even bother with a script, I do it as a single line of shell. And others have covered that earlier in this thread so I don't know why you are belabouring the point.
No, I do not know how to do it properly. I have been trying to figure it out for some years.
Don't be silly, Carlos, you've already answered that with xargs. (You just didn't write it out in a "paste this onto the command line" format.) I must admit that I prefer shell "while" loops and use of "read" since the shell can do pattern matching and discard extraneous stuff (which isn't relevant here). I do like one line at a time formats over stuffing them all on one big line with xarg. That's just my preference. It used to be in the V7 days that most of the system was written with shell scripts and it was easy to use them as examples. Of all the reasons not to use systemd, to stick with sysvinit, the least commonly mentioned one is that there are lots of example scripts in the sysvinit package. Still, we have the 'net, and there are not shortage of examples there. There are even some answers to to ellanois' question. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org