Saifi, Please try this command
find . -type f \( -name "*.x" -and -name "f*.x" \) Regards, Pratap On Tue, Sep 7, 2021 at 1:58 PM SAIFI <[email protected]> wrote: > Hi: > > consider this set of files spread across dir and sub dir. > > f.x > ff.x > gf.x > dir/f.x > dir/fg.x > dir/kg.x > dir/pf.x > > i want to use the 'find' command (man -S 1 find) to find all files with .x > extension but skip all the files whose names donot begin with 'f'. > > the constraint here is to use the 'find' command ! > > any suggestions ? > > > warm regards > Saifi. > > -- ---- Thanks, Pratap

