Generating list of files that have brackets in the file name

Arvin AUDIT

New Member
Hi

I have a folder that have pdf files. There are lots of files in the format "VC11006 (2).pdf". I want to generate a list of all such files

When I do ls -l *(* is gives me
-bash: syntax error near unexpected token `('

Thanks to help
 


wizardfromoz

Super Moderator
Staff member
Gold Supporter
G'day @Arvin AUDIT and welcome to linux.org :)

I am moving this to Command Line, where you will get a better response.

Cheers

Chris Turner
wizardfromoz
 

atanere

Well-Known Member
Hi

I have a folder that have pdf files. There are lots of files in the format "VC11006 (2).pdf". I want to generate a list of all such files

When I do
Code:
ls -l *(*
is gives me
-bash: syntax error near unexpected token `('

Thanks to help
Hi Arvin, and welcome. Try putting a "\" before the "(" character... like this:
Code:
ls -l *\(*
I think that will do it.

Cheers
 

Members online


Latest posts

Top