tags:

views:

38

answers:

2

i want to list files from dev end at tty bettwen 15 and 24...should appears /dev/tty15,/dev/tty16,/dev/tty17, etc until /dev/tty24

what is the command?

+2  A: 

If I understand the question correctly, you can use Bash's brace expansion:

ls /dev/tty{15..24}
Brian McKenna
already try ls /dev/tty[15-24], but appear /dev/tty1 and i want that start on 15
pedro
@pedro: {} is different from [].
Mikael S
@pedro: That's a different expression. What that does is similar to a character regular expression. Have you tried the brace expansion instead?
Brian McKenna
DONE!! THanks..
pedro
A: 

ls /dev/tty{15..24}?

Vlad