rawiriblundell / sh_libpath

Making shell scripts more robust with libraries
Apache License 2.0
11 stars 2 forks source link

Update text/len.sh functions to read stdin #24

Closed rawiriblundell closed 1 year ago

rawiriblundell commented 2 years ago

I wanted to run command | len and that doesn't work. That annoyed me.

Considerations: Read all lines into an array and return the 0th element by default? This would then allow users to access e.g. ${len[index]}?