I'm having problems figuring out how to do this bash script since I'm very new to bash.
I want to grab all the files I have in a directory, change their names (I think the changing names part can be done with mv
) and move them to another directory (again with mv
). Problem is that the files do not have an extension. Their names are simply numbers like: 1
, 2
, 3
etc. Just the number. How do I grab each extensionless file, change its name and move it?
Thank you.
name1
,name2
, etc. What do you want to change them to?othername1
,othername2
? orname101
,name102
? Need more detail.