find <dir> -name "*.x" | grep "f*.x"
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. > > -- Kasinadhuni Girija Kumar Raghava "How far that little candle throws its beams So shines a good deed in a naughty world"

