Search Results

Search: Posts Made By: gupt_ash
16,432
Posted By gupt_ash
Substring based on delimiter, finding last delimiter
Hi,

I have a string like ABC.123.XYZ-A1-B2-P1-C4. I want to delimit the string based on "-" and then get result as only two strings. One with string till last hyphen and other with value after...
2,159
Posted By gupt_ash
Issue with New Line character
Hi,

I am reading data from file and storing it in a multiline variable. Every line is seperated with "\n" character.

globalstrval="${globalstrval}""${line}""\n"

If the value of globalstrval...
2,831
Posted By gupt_ash
This is what I was looking for. Thanks for your...
This is what I was looking for. Thanks for your help.
2,831
Posted By gupt_ash
Reading complete line after spaces
Hi,

I am reading data from a variable which has spaces in it. I want to get the data after first space, i.e. if my data line is "My Name is Ashish...", I want the data returned as "Name is...
13,448
Posted By gupt_ash
Thanks Dennis.. This is exactly what I was...
Thanks Dennis.. This is exactly what I was looking for..
13,448
Posted By gupt_ash
Reading multi lines variable using shell script
Hi,

I am using #!/bin/sh shell. I have a variable which contains multi line data. I want to read that variable line by line. Can someone post the code to read the multi line variable line by line?...
Showing results 1 to 6 of 6

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