Generating list of files that have brackets in the file name

Arvin AUDIT

New Member
Joined
Jul 20, 2019
Messages
2
Reaction score
3
Credits
0
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
 


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
 
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