Search Results

Search: Posts Made By: flextronics
4,863
Posted By flextronics
string parser
While executing following program it is giving follwong error

./s-g-table.sh: line 8: attr1=fdxE1ConfigAdminStatus: command not found
./s-g-table.sh: line 8: attr2=i: command not found...
4,863
Posted By flextronics
string parser
It seems you have assumed all lines have 4 words seperated by :
but there may be less than 4 or more than 4.

Then how to traverse in particular line till new line character.

Your help will...
4,863
Posted By flextronics
string parser
I am new to scripting

I want to parse a string in a loop
eg A:B:C:D
E:F:G:H
and put them in different variable
attr1 = A
attr2 = B
attr3 = C
attr4 = D
.
.
/* do processing...
13,776
Posted By flextronics
How to assign variable from a string having blanks in between
Hi All,

I am new to bash scripting. I need your help to removing spaces from a string and assign them to different variables.

Iwant to call script with one command line argument which is file...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy