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 __home__123456__zad1.sh
Any ideas on how to do this?
some__really__important_file.txt
when putting things back not going into/path/to/some/really/important_file.txt
? – DopeGhoti Jun 14 '18 at 15:40__init__.py
,__main__.py
, etc. – wjandrea Jun 14 '18 at 20:05