fish shell: Is it possible to conveniently strip extensions? -


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