Results 1 to 2 of 2
Thread: need help on bash script
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2007
need help on bash script
I am new to bash scripting.
I need to acomplish below objectives.
Directory X contains some files e.g. "123_HH:MMD:MM:YYYY.pst" etc,
script should check in directory /a/b whether directory 123 (number before _ in above example) and if yes should move the file after renaming it to /a/b/123/ HH:MMD:MM:YYYY.pst (removing leading numers). If directory does not exist then it should create one and then move files after renaming.
Your help is appreciated.
sorry. HomeWork questions are not allowed here. its against Forum Rules. i am locking this thread.
Feel free to ask any Linux related non-homework questions here. we will try our best to help you.