Search Results

Search: Posts Made By: pasricha.kunal
2,198
Posted By pasricha.kunal
Looping using cut statement
i want to create loop for below mentioned

A1=`echo $obj1 | cut -d "," -f3`
A2=`echo $obj1 | cut -d "," -f4`
A3=`echo $obj1 | cut -d "," -f5`
A4=`echo $obj1 | cut -d "," -f6`
A5=`echo $obj1 |...
3,403
Posted By pasricha.kunal
Remote access and command execution on unix platform
How can we create new directory/Or execute command on remote unix machine from another unix machine.

We can use SSH command to execute command on remote machine but problem is that ssh will...
2,176
Posted By pasricha.kunal
i am using it in a shell how to assign result to...
i am using it in a shell how to assign result to variable
2,176
Posted By pasricha.kunal
let me make my problem more clear I want to...
let me make my problem more clear

I want to extract every thing after D_ .which include _ afterwards also

i.e. it can be A_B_C_D_E in this case answer is E

A_B_C_D_E_F_G in this case...
2,176
Posted By pasricha.kunal
to extract from string
My string is like

A_B_C_D_E_F

i wnat to extract E_F from this string how can i do it

Thanks in advance
5,725
Posted By pasricha.kunal
same thing happen over here whenever I am trying...
same thing happen over here whenever I am trying to pass variable in sed command it gives an error sed comman garbeled

value of new ri is set and I echo it just befrore sed to confirm and it is...
5,069
Posted By pasricha.kunal
sed command garbled error
sed: command garbled: s/ri="[0-9]*"/ri="

what i did is you can see below

sed "s/ri=\"[0-9]*\"/ri=\"$newri\"/" $2 > output
how to solve this
5,725
Posted By pasricha.kunal
now comes this error sed: command garbled:...
now comes this error

sed: command garbled: s/ri="[0-9]*"/ri="

what i did is you can see below

sed "s/ri=\"[0-9]*\"/ri=\"$newri\"/" $2 > output
mv output $2
5,725
Posted By pasricha.kunal
facing following error sed: illegal...
facing following error


sed: illegal option -- i
Usage: sed [-n] script [file...]
sed [-n] [-e script]...[-f script_file]...[file...]
5,725
Posted By pasricha.kunal
thanks for reply but in my file occurance is like...
thanks for reply but in my file occurance is like

rg="333",rh="222",ri="234",rj="567",rk="890"

pls suggest a way
5,725
Posted By pasricha.kunal
Extract a pattern from file
In my file I have a pattern
ri="234"

value of ri can be any i want to find this pattern in file replace this value of ri with another value stored in some variable say newri

Please tell...
7,067
Posted By pasricha.kunal
sh script.ksh runs the script even if it is not...
sh script.ksh runs the script even if it is not in executable mode
12,203
Posted By pasricha.kunal
ksh vs bash
what is diff between KSH and Bash can you tell me some commands which run in either of two but not in both.
while doing normal shell programming I am unable to find diffrence between two
Showing results 1 to 13 of 13

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