|
|
|
|
|
by mwcampbell
4268 days ago
|
|
> in the other corner: the complaint that sometimes, people can put carriage returns in their filenames and screw up the output of `ls -1`. With no suggestion of what would replace composed functional streams. How about functions that operate on data structures such as lists and maps? These can include generic functions that can slice and dice data structures regardless of what type of data those structures contain. > Nice try Lennart. Is Mr. Poettering's name now an epithet to be thrown at anyone who opposes the Holy Unix Way? Or do you just know something I don't about the identity of the commenter to whom you were replying? |
|
lists: ls -1 | wc -l
maps: ps -ef | grep 'tobekilled' | grep -v grep | awk '{ print $2 }' | xargs kill
would unix be better if it were
cwd.files.count
and
processes.filter{name = 'tobekilled'}.map(kill)
?
maybe for the newbie who paradoxically already understands functional and object-oriented programming, I'll grant.
But the 'pipe' ("this is a bucket brigade") has always been pretty easy for people to grasp.
The Lennart bit was a joke. The OP's post was so histrionically overwrought that I responded sardonically. Apologies if you were offended.