On Sat, 22 Mar 1997, Alexander Lazarevic wrote: > - In a tcsh I can do $var:r, which gives me 'name' if $var contaned > 'name.ext'. How can I do this with bash?
This will strip the shortest suffix that matches ".*" ${var%.*} This will strip the longest suffix that matches ".*" ${var%.*} There are several other approaches. It's all documented in the bash man page. > - In tcsh I can type anything on the command line and do a search on the > history list matching this input by pressing ALT-P. How do I do that > with bash? Ctrl-R -- Jean Pierre