Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

Ranges

It is possible to define ranges to be used by Bash functions by using curly brackets:

{a..b}

where a is the first element of the range and b is the last one. a and b can be either a pair of numbers or letters, allowing easy listing/removal/movement of a subset of files. For example:

$ ls
Draft1
Draft2
Draft3
Draft4
$ ls Draft{1..3}
Draft1
Draft2
Draft3
$ rm Draft{1..3}
$ ls
Draft4
Edit - History - Print - Recent Changes - Search
Page last modified on September 29, 2016, at 12:06 PM