photon
4/9/2017 - 6:43 AM

read and echo file name under a dir line by line

read and echo file name under a dir line by line

#!/bin/sh

for f in $(ls); do echo $f; done
for f in $(ls); do echo "$f"_newname; done