Thanks for ur replies.
Im being automobile engineer, I hardly interact with linux, as I do most of the work in Windows.
Presently Im working on one Linux Automobile tool, during processing of some files I stuckup in automating them.
Using available basic commnands I tried to solve the problem. The problem was to combine different files into one (used "cat"), next step is to rename newly created fle with one of available files with "underscore"
As I've to manually rename those files I thought I can get any quick solution from forum, as it was bit urgent.
Say in one folder I've a.txt b.txt & c.txt
Im clubbing them to one using: cat a.txt b.txt c.txt > d.txt
Now I want to rename newly created file d.txt to first file (from chronological order) a.txt i.e mv d.txt > a_1.txt
Say in next diectory I've e.txt f.txt g.txt
My actions will be:
cat e.txt f.txt g.txt > d.txt
mv d.txt e_1.txt
Mr/Mrs cbtshare u r absolutely right. I shud've tried myself something. Due to urgency I thought I can get some solution.