sunilsagar
asked on
shell script to verify brackets
Hi ,
I am trying to write a shell script to verify if brackets are used correctly in a file . If there is some other format it should show invalid.
Below are the correct formats :
[sunil:/1/2]
[sagar:/1/2/3/4]
Incorrect formats may have format :
[sunil:/1/2]]
[[sagar:/1/2]
[[sunil:/1/2/3]]
Please advise .
I am trying to write a shell script to verify if brackets are used correctly in a file . If there is some other format it should show invalid.
Below are the correct formats :
[sunil:/1/2]
[sagar:/1/2/3/4]
Incorrect formats may have format :
[sunil:/1/2]]
[[sagar:/1/2]
[[sunil:/1/2/3]]
Please advise .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for quick Savone, it works !
Open in new window