by cssmoo · 11y ago · 0 comments
For the first time ever I had to deal with xargs and find together last week. Bear in mind I've been using Unix for about 20 years now. Telling one command to null delimit stuff and another to parse the nulls is horrible. Especially seeing as this only came about because one directory happened to have a lot of files in it and the 11 year old script just went snap. I'm perhaps lucky I've never encountered this.
The author needs to take a look at powershell. Surprisingly I wrote a job site scraper in it in about 10 lines of code. Html parsing, data access etc are right there at your finger tips. That and it'll quite happily move 23TiB/1780000 files in a single incantation without wincing once.
Colour me impressed (as an old Unix die hard)
I'm really curious about this. Do you have a very specific workflow that gets around that need or an alternative that would replace find + xargs? Is your job pretty niche? It just seems like I _need_ it a few times a week minimum, and I'm not really sure what would replace it off the top of my head.
I do agree on powershell being quite slick. Sometimes finding what I want is a process, but so was unix in the beginning.
But more seriously, it only looks like the Unix shell. Operators like '|' can have very different semantics, especially when passing objects around and whatnot.
http://www.gnu.org/software/parallel/man.html#DIFFERENCES-BE...