Please help solve the problem.
There is a directory lab0 , in which there are files and more directories.
The task:
Recursively output the contents of files with line numbers from the
lab0directory, whose names begin withd, sort the lines by the namea -> z, redirect access errors to a file in the/tmp
I tried to do this:
grep -hn '^d' ~/lab0/ | sort -t: -k2d 2>/tmp/err But after the execution of the command, the terminal simply says nothing:

/tmp/err. And so he is not silent, but very informatively informs where the error is. - Alexander Prokoshevgrepnot suitable here. Read man find - avpsort $(find lab0 -mindepth=1 -maxdepth=1 -type f -name '^d*' 2>/tmp/err). - 0andriy