Search Results

Search: Posts Made By: myguess21
1,247
Posted By myguess21
Linux Server Check
Hi,

Is there a way to check linux server is up or not from my desktop (windows 7)?

from the command prompt or powershell script. I have about 100 servers which I have to check daily..right...
28,363
Posted By myguess21
sorry may be i didn't explain correctly here. if...
sorry may be i didn't explain correctly here. if the string is more then 8 char. get only last eight char otherwise leave it as it is. hope this helps.

readfile.txt

viewdtest110
viewdtest112...
28,363
Posted By myguess21
it works fine if i use sting="somethinghere" ...
it works fine if i use sting="somethinghere"
but when i do echo $FOUNDIT does not work.

here is my code.

cat readfile.txt | while read UID
do
echo $UID "-->uid"
TRIUID=`echo $UID | nawk...
28,363
Posted By myguess21
This is working fro me. can i do something...
This is working fro me.

can i do something like this? sorry i am new to this so. please help.

FOUNDIT=`grep -w $READ file.txt`
TFOUNDIT=`string=$FOUNDIT | nawk...
28,363
Posted By myguess21
sorry not able to find the ksh version. i...
sorry not able to find the ksh version.

i tried all three command.
28,363
Posted By myguess21
I am sorry. I am using korn shell.
I am sorry. I am using korn shell.
28,363
Posted By myguess21
count character
Hi, I am reading a string from a file.
now i want to count the number of chareacter in the string and if it is more then 8 capture only last 8 characters.


ex. string=mypassword

<<do...
17,901
Posted By myguess21
Hi Yogesh, i tried yesterday also. I have char &...
Hi Yogesh, i tried yesterday also. I have char & numeic value (lg. ge45678).
I got some good result but still getting similar valuses too. is there something diffrent i can try?
17,901
Posted By myguess21
add not equal in script.
Hi, i just want to print the value which are not equal. I try with $str != ${comp2[i]} but still getting same values.


for str in ${comp1 }; do
i=0
while (( $i < ${#comp2 } )); do
...
5,618
Posted By myguess21
Hi Jim, thanks this is working. what should...
Hi Jim, thanks this is working.

what should i do if i want to compare file2 (col1) not in file1 (Anywhere in file). then print the line from FILE2.
32,806
Posted By myguess21
got it. column 2 was printing ROW not ROWS. I...
got it. column 2 was printing ROW not ROWS. I change ROWS to ROW and it works.

Thanks for your help.
32,806
Posted By myguess21
Yes I am using Solaris. i was able to...
Yes I am using Solaris.

i was able to execute the command but still prints the lines that have "rows" in it.
32,806
Posted By myguess21
I am still getting an error: awk '(NR >13)...
I am still getting an error:

awk '(NR >13) && ($1!='1') && ($0!~"rows") {print $1}' file.out
awk: syntax error near line 1
awk: bailing out near line 1
32,806
Posted By myguess21
awk - do not contain string
Hi, I have file which contain following..

1>
(1 rows
(3 rows
(6 rows

I do not want to print these linse.

I came up with this but getting an error.

awk '(NR >13) && ($1!="1>") && if...
5,618
Posted By myguess21
match value from file1 in file2
Hi, i've two files (file1, file2) i want to take value (in column1) and search in file2 if the they match print the value from file2.

this is what i have so far.

awk 'FILENAME=="file1"{...
2,190
Posted By myguess21
awk help.
HI,

Please help, i am new to this.

I have a list of user's ID in excel file and i want to run against /etc/passwd (on server). And capture the output like this. If the user has noshell then...
Showing results 1 to 16 of 16

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