Tuesday, March 16, 2021

rename files within a directory one by one, using for loop and mv


for f in dir/*; do
    mv -- "$f" "$fSuffix" 
done 
So all the files in the dir/ will be renamed:
file1.txt --> file1.txtSuffix
file2.png --> file2.pngSuffix

1 comment:

Any comments?

my-alpine and docker-compose.yml

 ``` version: '1' services:     man:       build: .       image: my-alpine:latest   ```  Dockerfile: ``` FROM alpine:latest ENV PYTH...