Wednesday, June 06, 2012

wildcards in ls command

To find all figures files in a current folder:

ls *{png,jpeg,jpg,gif,bmp,tiff,tif}

To find all bigWig files for factor CTCF and P300 in current folder

ls *{CTCF, P300}*.bigWig

For full details about wildcards of ls, refer here:

Wildcards are powerful feature of Linux shell. For more information enter:
$ man 7 glob

No comments:

Post a Comment