+ 1

Can anyone help me creat a shell script command in linux to ask user for directory name and count the number inside it?

question

7th Jul 2018, 8:46 AM
Nicholas Kiplimo
Nicholas Kiplimo - avatar
4 Antworten
+ 1
You can do this in ls with "ls [DIRECTORY_PATH] | wc -l"
8th Jul 2018, 4:35 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
You could put that in a shell script
8th Jul 2018, 8:50 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
ben..i need a shell script command
8th Jul 2018, 8:29 AM
Nicholas Kiplimo
Nicholas Kiplimo - avatar
0
okey thank you
8th Jul 2018, 1:13 PM
Nicholas Kiplimo
Nicholas Kiplimo - avatar