Skip to content
Advertisement

Shell Script – Print directories/files & file numbers

I’m trying to write a shell which can print the directories & files in it. I want to add number (for loop) to files in it, but having issues – can you experts look into it and help me out? Thanks

JavaScript

Advertisement

Answer

Solved – Updated while loop with following – was simple than anticipated 🙂

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement