I did an sh script mistake....
now some of my files and directories start and end with "2"
How can i remove 2 from them with awk.
1) it should check if 1st and last chr is "2"
2) modify string [cut middle of it]
3) rename to normal file name
I'm awk NOOB, please help
Thanks in advance
P.S.
If you can do it with perl [which i don't know at all], or somehow else, please post....
I accept anything that can fix this
now some of my files and directories start and end with "2"
How can i remove 2 from them with awk.
1) it should check if 1st and last chr is "2"
2) modify string [cut middle of it]
3) rename to normal file name
I'm awk NOOB, please help
Thanks in advance
P.S.
If you can do it with perl [which i don't know at all], or somehow else, please post....
I accept anything that can fix this