So I need to write a bash script that copies all files to a specified directory however I need to rename the files to it's absolute path by replacing the
/ character with
For example if the file
zad1.sh is in the directory
/home/123456/ the file needs to be renamed to
Any ideas on how to do this?