Article 5C41K awk equivalent for this line

awk equivalent for this line

by
ychaouche
from LinuxQuestions.org on (#5C41K)
Dear LQ,

I would like to know how many files and directories are there in a given directory

function lsc { /bin/ls -l $1 | sed 1d | wc -l }

Is there a way to replace sed and wc with a single call to awk ?latest?d=yIl2AUoC8zA latest?i=R2IpYKxn7PI:bcTxHIFi-Tg:F7zBnMy latest?i=R2IpYKxn7PI:bcTxHIFi-Tg:V_sGLiP latest?d=qj6IDK7rITs latest?i=R2IpYKxn7PI:bcTxHIFi-Tg:gIN9vFwR2IpYKxn7PI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments