is there convenient way strip arbitrary extension file name, à la bash ${i%%.*}? stick friend sed?
nope. fish has smaller feature set bash, relying on external commands:
$ set filename foo.bar.baz $ set rootname (echo $filename | sed 's/\.[^.]*$//') $ echo $rootname foo.bar
Comments
Post a Comment