How filters should behave? The absolutely necessary behaviour: # If the output format permits multiple file contents to be merged # into one file: xyz2abc *.xyz > out.abc xyz2abc in.xyz > out.abc xyz2abc in.xyz -o out.abc xyz2abc in.xyz --output out.abc A tricky to implement behaviour for some program wrappers, but very useful and expected from many filters: xyz2abc < in.xyz > out.abc A behaviour that is compatible with the above behaviour and can be implemented as an option: xyz2abc --separate-outputs *.xyz # convert all files in the WD: 1.xyz->1.abc, # 2.xyz->2.abc, ... xyz2abc *.xyz -o out.abc xyz2abc *.xyz --output out.abc xyz2abc --separate *.xyz --out outdir/ # convert all files in the CWD and put them into outdir/ The behaviour which shold not be depended upon: xyz2abc in.xyz # in.xyz -> in.abc xyz2abc *.xyz # convert all files in the WD: 1.xyz->1.abc, 2.xyz->2.abc, ...