So here are the questions:
I have a folder, let's say
C:\myFolder
, and in this directory, I have many subfolders, and in each of this subfolders, I have exactly one folder, that contains pdf files, so my file structure looks something like this:C:\myFolder\someFolderInMyFolder\theOnlyFolderInThisFolder\*.pdf
, now I want to move all these pdfs one level up, such that it will be like this:C:\myFolder\someFolderInMyFolder\*.pdf
. Are there any command line commands, or scripts (that can be executed by Cygwin) that will help me with this?What could complicate the situation is that, I have manually move some files one level up by myself, so it will help if there is a check condition.
I have some
.zip
files that the name are generated by computers, in the format ofmm/dd/yy/fileIndex.zip
, and the fileIndex is likeNo.001
, for example. When I upload the extracted folders to Dropbox, and view the files on my iPad, it looks weird because the full folder name can not be displayed completely, so I want to rename each folder tosomeIndex
, in the above example, fromNo.001
to001
, so same question here: any command or shell scripts?