I have below file in one directory of linux now i want to shoart like ls -ltr secu.meta then i wanted to rename those shorted files from .meta to .xml how can i do that with loop in linux ? i tried coupld of option but no luck my goal is too loop through all file list and find pattren and rename all file to .xml i may need to find another pattren also like ls -ltr est.meta to est.xml ?? this is just an example i may have more then 5 pattren in search.401409.test_est.meta301409.test_secu.meta201409.test_secu.meta201409.resp_secu.meta2001409.test_esf.meta101409.test_secu.metaThanks in advance to all linux guru
How to loop through file pattren and rename file name in linux?
linux