I'm starting to pick up Linux. I have one directory called class03
with five directories in it:
_html
html
dothtml
images
123
I need a one-line command that lists all files with -01
, -02
and -03
in the file name in those directories.
I can get all the files to list with the command:
ls _html/ html/ dothtml/ images/
When i try to put the restrictions it still lists without the restriction and errors with the *-0[123]
I tried:
ls *-0[123] * _html/ html/ dothtml/ images/
and:
ls _html/ html/ dothtml/ images/ * -0[123] *
So what do I need to do to make the code work in one command?
_html
andhtml
directories, it's good enough to sayls _htlm html
-- you don't need to type/
at the end of each directory name.