I am a complete noob. I would like to create a shell script in centOS7 that does these 3 steps and I don't even know where to begin :
Run somepythonscript.py in currently opened directory (folder) in terminal. (The python script will create
.datfile calledNCS.datinside this directory)rename the file
NCS.datwith name of the folder that is 2 levels above (so if the path to the file isFolderName1/FolderName2/NCS.datI want theNCS.datbe renamed toFolderName1.dat)move the renamed
.datfile to some other random folder X.
Hope I made it clear. Thank you in advance!