Search Results

Search: Posts Made By: kichu
1,643
Posted By kichu
SSH connect and update a file
Hi,

i am new to Shell Scripting.

Please let me know how can i access from Server1 a properties file in Sever2 and update a value in it.


Thanks in advance:confused:
2,461
Posted By kichu
Actually, i just need the value of the column...
Actually, i just need the value of the column PERCENTAGE corresponding to the STORAGE field value = defaultStorage1.

But when i use this, the percentage variable is containing the entire table as...
2,461
Posted By kichu
Hi, is it possible to get the value of the...
Hi,

is it possible to get the value of the correspoinding PERCENTAGE of the defaultStorage1 fields as below :

percentage=awk -vx="\/$defaultStorage1" '{FS=OFS=" "}$1==x{print $2}1' file.dat ...
2,461
Posted By kichu
Thank you bartus11.:) It worked.... :b: ...
Thank you bartus11.:)

It worked.... :b:

---------- Post updated 12-08-10 at 06:05 PM ---------- Previous update was 12-07-10 at 06:25 PM ----------

hi

awk -vx="\/$defaultStorage1"...
2,020
Posted By kichu
Thank you all.. Can you let me know how...
Thank you all..

Can you let me know how can i get the Storage name in variable for further processing??
2,020
Posted By kichu
Get min from a column conditionally
hi,

i have a file with folowing content:

STORAGE PERCENTAGE FLAG:
/storage_01 64% 0
/storage_02 17% 1
/storage_03 10% 0
/storage_04 50% 1


I need to get the value of STORAGE from...
2,461
Posted By kichu
i tried awk '{FS=OFS="...
i tried


awk '{FS=OFS=" "}$1=="\/${defaultStorage1}"{$3="1"}1' file.dat

but all it is not updating the value

awk: cmd. line:1: warning: escape sequence `\/' treated as plain `/'...
2,461
Posted By kichu
Thanks all.. can you also let me know how...
Thanks all..

can you also let me know how to append a "\"to defaultStorage1 and check if $1 is equal to that ?

defaultStorage1 variable has value storage_02

but in file the 1st column is...
2,461
Posted By kichu
i found the reson as to why itsnot working: ...
i found the reson as to why itsnot working:

The file has value as

CONTENT_STORAGE PERCENTAGE FLAG:
/storage_02 64% 0
/storage_01 17% 1

where as $defaultStorage1 has value as storage_02...
2,461
Posted By kichu
update field
Hi All,

i have a file file.dat with following data :


CONTENT_STORAGE PERCENTAGE FLAG:
storage_02 64% 0
storage_01 17% 1


i need to update FLAG field of storage_02 to 1

i am...
3,961
Posted By kichu
Update a field in a file based on condition
Hi

i am new to scripting. i have a file file.dat with content as :


CONTENT_STORAGE PERCENTAGE FLAG:
/storage_01 64% 0
/storage_02 17% 1


I need to update the value of FLAG for a...
6,436
Posted By kichu
hi, i am able to get all the flag values...
hi,

i am able to get all the flag values using this

awk -F '</?flag>' '{print $2}' storagedetails.xml

but i am not able to get the <name> one by one into variable for all flag value = 0
6,070
Posted By kichu
Thank you very mush michael. i am just...
Thank you very mush michael.

i am just recieving ABC_01 as output now.
6,070
Posted By kichu
EMC Documentum idql - Interactive document query...
EMC Documentum idql - Interactive document query interface
All rights reserved.

Connecting to Server
Connected to Server running Release 6.5.
1> 2> file_system_path ...
6,436
Posted By kichu
read and write to xml file
hi

i am quite new to shell scripting and need help in reading and writing in xml file

i have an xml file with format:


<main>
<store>
<name>ABC</name>
...
6,070
Posted By kichu
thank you micheal, i went with the...
thank you micheal,

i went with the fiollowing methof u proposed as i am not sure what are the values that come after \ symbol

now i am using


defaultStorage1=`sed...
6,070
Posted By kichu
hello thanks everyone i have written...
hello

thanks everyone

i have written code as


while read line; do
defaultStorage= `echo "/test/test2/test4/test6" | cut -f2 -d/`
echo $defaultStorage
done<defaultStore.txt


...
6,070
Posted By kichu
find the line starting with a pattern and save a part in variable
Hi

i have a file which has mutiple line in it.

inside that i have a pattern similar to this

/abc/def/hij

i want to fine the pattern starting with "/" and get the first word in...
1,750
Posted By kichu
Comparing rows in same file and writing the result in new file
Help needed...

Can you tell me how to compare the last two couple entries in a file and print their result in new file..:confused:

I have one file
Check1.txt


\abc1 12345
\abc2 ...
5,897
Posted By kichu
thank you..:) i am new to shell...
thank you..:)

i am new to shell scripting...

can i use iostat for getting similar result for each mount point associated with the filesystem:confused:

Alos can i change the report to show...
5,897
Posted By kichu
find the rate of growing of filesystem
Hi,

I need to find out the gigabytes/hour growth in filesystem.:confused:

i am using df command for finding the filesystem size and free space every hour. But how can i find the increase...
2,002
Posted By kichu
Retrieve a particular value into a variable
Hi,

i am writing a shell script that will execute a select query. the select query returns one specific value.

Idql is used for quering in documentum...

X = $ (idql <docbase> -U<username>...
Showing results 1 to 22 of 22

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