For in loop display file name in /bin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

For in loop display file name in /bin

anyone know how to make a for loop in bash to read files in a bin directory

13th Aug 2019, 12:42 AM
Henry Diaz
Henry Diaz - avatar
2 Answers
0
#something like this? for each in /bin ; do echo "$each" done
13th Aug 2019, 1:21 AM
Steven M
Steven M - avatar
0
that didnt work. I know fhe command is ls -l /bin just to do it regualr but I cant seem go figure it out doing a script
13th Aug 2019, 1:27 AM
Henry Diaz
Henry Diaz - avatar