Another way to write long fixed wildcard? [solved]

New to Debian (Or Linux in general)? Ask your questions here!

Another way to write long fixed wildcard? [solved]

Postby pata » 2020-03-12 19:41

ls *
ls ??
ls [a-z]

I know the above. But is there a way to write long fixed wildcard?

Example ?????????????????????????????? (30 characters)
Last edited by pata on 2020-03-17 15:24, edited 1 time in total.
pata
 
Posts: 4
Joined: 2020-03-09 19:05

Re: Another way to write long fixed wildcard?

Postby sunrat » 2020-03-12 20:14

pata wrote:I know the above. But is there a way to write long fixed wildcard?

Example ?????????????????????????????? (30 characters)


Sounds legit. Did you try it? I'm guessing you might have to specify a whitespace character at each end if you want to find all fields exactly 30 characters long as that might match all fields more than 30 characters long as well. I'm no regex expert though.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2998
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Another way to write long fixed wildcard?

Postby pata » 2020-03-13 14:53

The thing is, it is hard to tell how many ?s I have typed.

That is why I asked if there is another way. Say like {30} instead of ??????????????????????????????.
pata
 
Posts: 4
Joined: 2020-03-09 19:05



Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable