I have this command (KSH)
find <path> -regextype posix-extended -type f -regex '.*/txt' -exec ls -l --full-time \{\} \;
| sort -bnr
So, I'm reading and deciphering the command above so far what I know is that
-regextype posix-extended
this just changes the regextype to posix-extended
-type f
this only return files
-regex '.*/txt'
this is just regular expression
-exec ls -l --full-time
executes ls -l --full-time
\\{\\}
this one I don't get. What does it do? What I know is that I need to end -exec
with {} \;
but why there's backslash inside the curly braces?