Skip to main content
Error in shell name.
Source Link
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

In Bash, thisThis lists all files down one level:

echo */*

In Bash, if globstar is set (set with shopt -s globstar, unset with shopt -u globstar), this will list all files recursively:

echo **
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

In Bash, this lists all files down one level:

echo */*

if globstar is set (set with shopt -s globstar, unset with shopt -u globstar), this will list all files recursively:

echo **
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

This lists all files down one level:

echo */*

In Bash, if globstar is set (set with shopt -s globstar, unset with shopt -u globstar), this will list all files recursively:

echo **
A more precise description.
Source Link
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

ThisIn Bash, this lists all files down one exists for recursive listinglevel:

echo */*

if globstar is set (newer versions of some shellsset with shopt -s globstar, see the comments on this answerunset with shopt -u globstar), this will list all files recursively:

echo **/*
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

This one exists for recursive listing (newer versions of some shells, see the comments on this answer):

echo **/*
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

In Bash, this lists all files down one level:

echo */*

if globstar is set (set with shopt -s globstar, unset with shopt -u globstar), this will list all files recursively:

echo **
added 124 characters in body
Source Link
0xC0000022L
  • 17k
  • 27
  • 114
  • 182
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

This one exists for recursive listing (newer versions of some shells, see the comments on this answer):

echo **/*
echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

echo *

... will show files in the current folder through file globbing on Bourne compatible shells.

This one exists for recursive listing (newer versions of some shells, see the comments on this answer):

echo **/*
Post Migrated Here from stackoverflow.com (revisions)
Source Link
0xC0000022L
  • 17k
  • 27
  • 114
  • 182
Loading