Search code examples
ubuntu-9.10

UBuntu BASh commands ls


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?


Solution

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

    ls /dev/tty{15..24}