nitin_cherian
nitin_cherian

Reputation: 6655

Query on find command

When i do a find inside a directory i get the output like

./MyWork/a.c
./MyWork/b.c
./mtab

My question is how can use find command in such a way that my output will not show ./

my output should be

MyWork/a.c
MyWork/b.c
mtab

Thanks, LinuxPenseur

Upvotes: 1

Views: 81

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

Add -printf "%P\n" at the end.

Upvotes: 2

Related Questions