1

basename multiple files [closed]

view story
linux-howto

http://stackoverflow.com – In a directory (I work in Linux) I have like 100 subdirectories named like: name_02randomnumber e.g: John_023338898963 MARK_022672389892 Petra_02326288918 In every subdirectory is a subdirectory wich name is like randomnumber_analyse and in that subdirectory is a file named first. In the last subdirectory, first is a file called first_TR_first. So I have 100 first_TR_first files. I want to get all those files, rename them and copy them to one folder. The folder I want to copy to is a folder called allfiles in the directory with the 100 subdirectories (so that folder is the 101st subdirec (HowTos)