Shell scripting: I have below input file
Contents of file1
-bash-4.2$ cat file1
sample.1.17.10.tar
test.1.17.10.tar
work.1.17.1.0.tar
Need to get output as below
From : > cat file2
sample
test
work
From :>cat file3
1.17.10
1.17.10
1.17.10
It should generate two files by stripping the name and value as mentioned
file2andfile3surely?1.17.1.0generated fromwork.1.17.1.0.tar?