I have written this code (this code in bash counts the lines in all the folders), the problem is that it also writes the name of each folder. What should I do in order to make it write only the total number of the lines without the folder name?
#!/bin/bash
find $1 -type f | xargs wc -l | cut -d "." -f1 | tac | head -n 1 | cut -d "t" -f1