get directory name ls bash code example
Example: how to filter directory in linux
#directory structure:
- G10
- G11
- G12
- thisDir
#command to enter to filter for all the G?? directories:
ls -d G??
#entering this will return:
- G10
- G11
- G12