3 ms·
> That list of files can come from anywhere. Does it come from a text file? A script? Or find? Doesn't matter. This is an important concept. A powershell scrip
by flukus 10y ago
> That list of files can come from anywhere. Does it come from a text file? A script? Or find? Doesn't matter.
This is an important concept. A powershell script might need to change depending on the source, sometimes it'll be a file object and other times a string, in unix it will always be a string. This is important for composability.
- vertex-four 10y agoIn practice, I seem to end up with a `sed` or `perl` script to mangle one string format into another between processes anyway. And then it all breaks between systems because half the most common commands have different defaults between systems. You can't even encode lists of strings in a format that's reliably understood by all UNIX programs.