>> Any Suggestion welcome.
Ok:
1- If you are not comfortable scripting, or adapting the suggested solutions, then just take the closest solution and go into an editor and do the thing alright! You could have been done by now.
But scripting is preferable, even if it is more work, because it will get it right, and it will be repeatable.
2- If you want us to help better, then PLEASE be more explicit on what you want.
Input: blah.xxx.blahblah
Output: command blah.xxx yyy xxx ?
Conditions?
3-Google! +bcv +vg +import
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3499684- MAN PAGE: vgchid
5 - Uniq only compares ADJACENT lines. So you must pre-sort the file or know for sure it is (still) sorted after the transformations.
6- Try this
ls | -ne s/(bcv\d+)\..*$/$1/; print unless $seen{$_}++"
Hope this helps,
Hein.