how to add extension to all files terminal 1

how to add extension to all files terminal

//terminal 
for f in * ; do 
  mv "$f" "$f.js"
done

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a for loop.
3. The third line is a command to move the file.

Similar Posts