Search Results

Search: Posts Made By: ratan2204
2,968
Posted By ratan2204
For Directory length, u can use the follwing...
For Directory length, u can use the follwing command :

du -k

It gives the length including all the sub-directories.

ratan
24,218
Posted By ratan2204
Hi Vino, Yes Man, thanks it worked. ...
Hi Vino,

Yes Man, thanks it worked.

ratan
24,218
Posted By ratan2204
I have tried this, and does not work. but...
I have tried this, and does not work.

but the problem here is the new variable has path and it has has values like"/opt/den/QA/data", so sed is not able to regonise it as string and it gives error...
24,218
Posted By ratan2204
:confused: No it gives error. the error is ...
:confused:

No it gives error. the error is
sed: command garbled:
24,218
Posted By ratan2204
$var1 had old value. sed...
$var1 had old value.

sed 's/$var1=.*/$var1=\"$ans_var2\"/g' dbt1.dat

$ans_var2 had new value.
24,218
Posted By ratan2204
replace a string in a file
I want to replace a path in file, that is accepted from user.
I have tried sed command but, it does give error to me.

Can any one help me, on this.
Here is want i want to do.

In a file...
Showing results 1 to 6 of 6

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