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:
http://how-to.linuxcareer.com/learning-linux-commands-ls#h3-5-ls-command-and-wildcards



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


No comments:

Post a Comment