cd /var/opt/sw/e4/data/dev/e4_dev/DEVL3/EW/EWD1/DATA/AED/INPUT
for file in *;do tar -czf ../OUTPUT/"${file}".tar; done
According to the above code the files in input path eg. aedlog
, aaalog
... (file name) are placed in the output path as aedlog.tar
, aaalog.tar
... etc
How can i change the code such that the files are place in the output path with new name format EDWfile_01.tar
, EDWfile_02.tar
...etc ?