Search Results

Search: Posts Made By: Chandu2u
2,551
Posted By Chandu2u
help required for replacing text in vi
Hi
Any one pls give me command in vi to replace /opt/usr with /home/reddy/dump .... i tried escaping / with \ bt its not working...


thanks in advance
26,610
Posted By Chandu2u
it is working perfectly now thx a lot onca again
it is working perfectly now thx a lot onca again
26,610
Posted By Chandu2u
their was no space trace is below ...
their was no space
trace is below
input=1234.56789000
+ input=1234.56789000
Result=`echo $input | awk ' sub("\\.*0+$","") '`
echo $input | awk ' sub("\.*0+$","") '
++ echo 1234.56789000
++ awk...
26,610
Posted By Chandu2u
it is failing for below value echo 4000 | awk '...
it is failing for below value
echo 4000 | awk ' { sub("\\.*0+$","");print} '

getting result as 4
i want it as 4000 ... plz help me on this
26,610
Posted By Chandu2u
Thx ...its working fine now ... bt i am unable to...
Thx ...its working fine now ... bt i am unable to store the result in variable if i redirecting to file it is working fine ... y is it so??

Result= `echo $value | awk ' { sub("\\.*0+$","");print}...
26,610
Posted By Chandu2u
i tried with above solution bt if variable has...
i tried with above solution bt if variable has 1234 den it is returning null bt i want as 1234 it self
26,610
Posted By Chandu2u
Thx
Thx a lot is thr any way adding check that if it is a float den remove trailing zeros ?
26,610
Posted By Chandu2u
How to delete trailing zeros from a variable
Hi All
I want to delete trailing zeros from varible.
ex:
if variable value is 1234.567000 result as 1234.567
if variable has 1234.0000 result as 1234
if variable as abcd.fgh result as...
Showing results 1 to 8 of 8

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