alhassani54
Programmer
Hi
I would like to extract data from a file. The delimiter is space but some time the file contains more than one space. I tried to use the cut command and use the space as delimiter but unfortunately on some occasion does not work because the file contains more than one space.
Example of the file
1 abc 12345678 12/12/1991 12:39 abc.src
2 def 123 12/12/1991 12:29 defxxxx.src
from example 1 I would like to get 12345678 and abc.src
from example 2 I would like to get 123 and defxxxx.src
Any help will be appreciated.
Thank you
Kais
I would like to extract data from a file. The delimiter is space but some time the file contains more than one space. I tried to use the cut command and use the space as delimiter but unfortunately on some occasion does not work because the file contains more than one space.
Example of the file
1 abc 12345678 12/12/1991 12:39 abc.src
2 def 123 12/12/1991 12:29 defxxxx.src
from example 1 I would like to get 12345678 and abc.src
from example 2 I would like to get 123 and defxxxx.src
Any help will be appreciated.
Thank you
Kais