The 'ls' command in a Linux system can be used as follows.
To list only the files with no extension
ls !(*.*) current all the subdirectories
ls -d !(*.*) only in the current directory
ls -d !(*.tar) only in the current directory
ls --ignore='*.tar' without *.tar extension files
To list only the files with no extension
ls !(*.*) current all the subdirectories
ls -d !(*.*) only in the current directory
ls -d !(*.tar) only in the current directory
ls --ignore='*.tar' without *.tar extension files
ls -I '*.*'
ls | grep -v "\." (using grep)
For a comprehensive list of bash commands usage, see here.
No comments:
Post a Comment