fwiw, bbedit has a builtin [s]ftp file browser that works in the way you describe. i use it a lot.
bbedit also has unix shell script support and worksheets that can run one-liners. i don't use it much, so i can't really say how well it works or how useful it it. but i guess it would be possible to do what you describe, and given that it's bbedit, i'm inclined to think it would work intelligently and well.
i'm not affiliated with the company, but i've used bbedit since about 1997. i can see how textmate is superior in some ways, but it lacks some bbedit features that i use a lot so that makes it hard to contemplate changing -- just like the emacs graybeard who also commented.
bbedit also has unix shell script support and worksheets that can run one-liners. i don't use it much, so i can't really say how well it works or how useful it it. but i guess it would be possible to do what you describe, and given that it's bbedit, i'm inclined to think it would work intelligently and well.
i'm not affiliated with the company, but i've used bbedit since about 1997. i can see how textmate is superior in some ways, but it lacks some bbedit features that i use a lot so that makes it hard to contemplate changing -- just like the emacs graybeard who also commented.