hey everyone howz it oging? am a complete noooooooooob to shell programming. i saw a few codes and applications and i already feel like running away lol i like my programming but with like java, vb, vb.net and even C++ but this hear looks all too new for me. so i decided i'd take it step by step like in java, the first prg they teach u is how to print HELLO WORLD so i do the same in bash. ok so here's my prb. say am in a directory and i want to find out how man files are jpegs and exe. like the result would b cout<<u have 10 jpegs and 5 exe
how do i get the name of a file and how do i check if it's an exe or not? a jpeg or not?
can someone just write a loop for this? a few lines checking if files are jpeg or not. no it's not an assignment although if u find it somewhere plz tell me lol cuz i'd rather read about it then ask
anything u can offer be it a complete answer or link or anything would b most appreciated. thnx and good day ^_^
ps. i think i put this in the wrong place but i wasnt so sure. sorry. didnt know if it were here or in general linux and id idnt want to double post on my first day lol