I have a main directory bp
and it has many sub-directories bp01
, bp02
, bp04
. In each directory it has a file and the name of each file is randomly but start with co. I want to change each file name the same as its parent directory.
The following is the structure of my folder:
I want it look like this:
I am green hand in Linux,hope some one can help me. Thank you:)