I need a one line command for the below requirement.
Search all the files from the root directory and print only those files names whose file name length is less than 25.
I suppose we can do it with find command something like below:
find / -type f |xargs basename .... I am not sure about furthur command.
After referring quickly some manuals i got to find awk to be more suitable and easy to understand.please see the below solution which i had came up with.
may be there are some syntax errors.please correct me if i am wrong.