0

I have executed this command to find entries with the current folder.

find . -maxdepth 1

Expected result

./main.c
./g2074048
./main
./g2092405
./Tests

Output

.
./main.c
./g2074048
./main
./g2092405
./Tests

How to have an output that does not include the current directory ?

MMasmoudi
  • 508
  • 1
  • 5
  • 19

1 Answers1

0

I think I found a solution. I only had to add -mindepth 1

Correct command

find . -maxdepth 1 -mindepth 1
MMasmoudi
  • 508
  • 1
  • 5
  • 19