Hello All.

I have an issue with string manipulation.

The file which I am using has two lines :

First String: 1 4
Second String: 5 4

What i am trying to do is while reading each line, i would like to store each variable in the line into 3 different variables.
For example :

Variable 1 = First String:
Variable 2 = 1
Variable 3 = 4

I know I can do that individually, but is there a way to do all 3 at the same time?

Ok which OS linux or Windows (determines the shell you want to use) and I would use Perl it is designed for sting manipulation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.