Why people use Linux in place of *nix ? Even worst, most of the tools (cat, grep, awk) are Unix commands, redeveloped by the GNU project in most of the GNULinux distros.
> Why people use Linux in place of nix ? I find it more irritating when people try to score greybeard points by saying *nix (or Unix) when it's obvious that they're talking about a Linux-only mechanism and quite possibly haven't ever used Unix (or a direct derivative).
An introduction to data processing on the Linux command line
61–70 of 73 posts
Re: An introduction to data processing on the Linux command line
#62Ugly UUOC (Useless Use Of Cat). Damn peoples, please i appreciate your will to share, but share good contents and stop spreading bad shell patterns....
Re: An introduction to data processing on the Linux command line
#63Earlier quoted context omitted.
Huh? What is specific to Linux in this post? Also, the most popular Unix-like OS (far more than Linux) is macOS, basically the least “leet greybeard affectation” thing I can imagine. Your irritation is way off base.
> Huh? What is specific to Linux in this post? Perhaps nothing? I was responding to the complaint in general terms. > Your irritation is way off base. Please allow me to feel irritated when people refer to obvious Linux things as something that's supposedly got something to do with Unix. It happens often enough.
I had thought that you were directly responding to the original poster.
Re: An introduction to data processing on the Linux command line
#64Earlier quoted context omitted.
Yes, it made the whole article useless.
I assume you're just joking around, but to you and the parent comment, I'd be happy to hear any good arguments for avoiding 'useless' cat. Note that I did mentioned 'useless cat' in the article, and there is already a comment thread in this article that contains my opinions on it.
Re: An introduction to data processing on the Linux command line
#65Not really where the author is heading, but I like to configure a backend for mathplot lib to render graphics in a terminal so when I am SSHed to a remote system I can get inlined plots.
Better solution: sixel-gnuplot Shameless plug: https://github.com/csdvrx/sixel-gnuplot
Re: An introduction to data processing on the Linux command line
#66Earlier quoted context omitted.
> Build a pipeline like I've discussed in the article, then pipe it into Python or R. Why not just do it all in Python or R? That way you also get something that will probably work on non-unix platforms.
Over the years I've found that I usually fall into a pattern of starting with low-fidelity automation in languages like shell and slowly re-writing it over time into more higher-level languages, usually python first, then Java. This way, unimportant tasks can be automated in less than 5 min with one of these shell commands. If it breaks or has errors, no big deal. Python works well for figuring out the structure of t…
Re: An introduction to data processing on the Linux command line
#67Here are some ways you could simplify some of the tasks in the article, saving on typing: cat data.csv | sed 's/"//g' can be simplified by doing this instead: cat data.csv | tr d '"' This awk command: cat sales.csv | awk -F',' '{print $1}' | sort | uniq Can be replaced with a simpler (IMO) cut instead: cat sales.csv | cut -d , -f 1 | sort | uniq When using head or tail like this: head -n 3 You don't need the -n: head…
cat sales.csv | awk -F',' '{print $1}' | sort | uniq
can even be further simplified to cut -d, -f1 sales.csv | sort -uRe: An introduction to data processing on the Linux command line
#68 cat sales.csv | awk -F',' '{print $1}'
but I'd prefer cut -d, -f1 sales.csvRe: An introduction to data processing on the Linux command line
#69Not really where the author is heading, but I like to configure a backend for mathplot lib to render graphics in a terminal so when I am SSHed to a remote system I can get inlined plots.