zsh tips and tricks

Create temporary file, on the fly, containing the results of a command:

multivalue =(awk '{print $4","$5","$6}' 4MBR.dms) 4MBO.dx 4MBO.surf

Will get the columns 4, 5 and 6 as input of multivalue

Get the filename without extension (modifier)

$ pdbfile=pdb2l0s.ent.gz
$ echo $pdbfile:r
pdb2l0s.ent

Remove a trailing pathname component, leaving the head. (modifier)

$ test=pdz2/relax/0056pdz2_0019.pdb
$ echo $test:h
pdz2/relax
If you want to ask me a question or leave me a message add @bougui505 in your comment.