KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
for i in $(ls);do if [ $i = '*.java' ];then echo "I do something with the file $i" fi done I want to loop through each file in the current folder and check if it matches a specific extension. The code above doesn't work, do you know why?
Tags (comma-separated)
Save Edits
Cancel