1336

· 👁 9 views

...one of my #bash aliases: to count files here:

c() {
       ls -1 | wc -l
       # count files here

       history -d "$(history 1 | awk '{print $1}')"
       # delete from history
}