Search Results

Search: Posts Made By: pvamsikr
1,458
Posted By pvamsikr
Nope.. I am Redhat Linux and it doesn't have that...
Nope.. I am Redhat Linux and it doesn't have that grep -o option..
1,458
Posted By pvamsikr
Identify variables used in the shell script
Hi,

Is there any simple way to get/identify the variables that are used in a file and print those variable names. If I have something like this in a file,


/$var/temp_dir/${var2}${var3}.log
...
1,591
Posted By pvamsikr
Help with expect command
Hi,

I am using following commands in my script to send a password to scp command. Everything is working fine except that I need a return code from the scp command. Do any one have an idea how to...
1,236
Posted By pvamsikr
sorry, did not read your first thread clearly.....
sorry, did not read your first thread clearly.. if you dont want to print 16th column, use this.. It same as the solution provided by "bartus11"

awk '{$4 = $16; $16 = ""} {print $0}' file
1,236
Posted By pvamsikr
Try this: awk '{temp = $4; $4 = $16; $16 =...
Try this:

awk '{temp = $4; $4 = $16; $16 = temp} {print $0}' file
2,912
Posted By pvamsikr
Try this for join command: while read LINE ...
Try this for join command:

while read LINE
do
sed -e "s/^/${LINE}/g" File2
done < File1
1,288
Posted By pvamsikr
Try this: (in Awk) awk...
Try this: (in Awk)

awk '{d=gsub("[.]","",$9);a=gsub("[Aa]","",$9);g=gsub("[Gg]","",$9);c=gsub("[Cc]","",$9);Co=gsub("[,]","",$9);t=gsub("[Tt]","",$9); print $2" "d " "a" "g" "c" "Co" "t }' file
2,009
Posted By pvamsikr
Thanks Vidyadhar... Its working.. Can you explain...
Thanks Vidyadhar... Its working.. Can you explain me if you have any idea what was the problem in the command that i have used. it was not displaying or comparing only 0.
2,009
Posted By pvamsikr
yes..the input which i have given is the sorted...
yes..the input which i have given is the sorted one...
2,009
Posted By pvamsikr
comparing variables in awk array
Hi,

I am trying to sort and display the below(like) input using awk command:


Input:
------
0;A
4;A
5;A
33;A
45;A
0;B
4;B
5;B
33;B
45;B


Output (desired):
Forum: HP-UX 06-02-2009
8,035
Posted By pvamsikr
2,982
Posted By pvamsikr
socket programming
Hi,

I am trying to connect to more than 60 servers to perform some actions remotely. for this I am using ssh2. But its taking lot of time.

Though i am running the command in background, still...
2,376
Posted By pvamsikr
Please find the man page for find command
-size n[c] True if the file is n blocks long (512 bytes
per block). If n is followed by a c, the
size is in bytes....
2,362
Posted By pvamsikr
ok.. i am trying that at $ prompt... the same...
ok.. i am trying that at $ prompt... the same command got succeeded when i used it in a script.. and i am using ksh....
2,362
Posted By pvamsikr
can we run ssh2 in background
Hi,
I was trying to run ssh2 command in background... but i got follwoing error message saying that process has been stopped..

[1] + Stopped(SIGTTOU)

Anyone have any idea about this???...
8,320
Posted By pvamsikr
try this one...its working...
for num in 6 5 4
do
awk -v number=$num 'BEGIN{for(x=0;x<number;x++) printf "-"; printf "\n"}'
done
27,844
Posted By pvamsikr
you can use this one.. may be u need to modify...
you can use this one.. may be u need to modify some part


ll | tr -s ' ' | awk '{ perm=$1; dd=substr(perm,2,3); de=substr(perm,5,3); if (dd == "rw-" && de == "r--" ) print $9 }'
6,127
Posted By pvamsikr
hi iam not able to use declare command on my...
hi iam not able to use declare command on my HP-UX server...

$ declare -a months
sh: declare: not found.

is there any restriction to this command .. like OS..
6,394
Posted By pvamsikr
oops.. sorry.. it was not milx.. its...
oops.. sorry..

it was not milx.. its "mailx"..
6,394
Posted By pvamsikr
the command i am using is : milx -s "Servers...
the command i am using is :

milx -s "Servers list" ${MAIL_ID} < $MAILFILE

MAIL_ID was defined with actual email id and MAILFILE contains list of the servers having login problems.

In the...
6,394
Posted By pvamsikr
sending mail through mailx
while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP.
9,254
Posted By pvamsikr
sudo command remotely
Hi,

can any one of you help me how to run sudo commands/scripts remotely...
2,490
Posted By pvamsikr
problem with getopts
Hi, I am a new member to unix.com.

Actually I am facing a problem with getopts. In my script i have used getopts to parse the parameters. when i use the script as shown below its working fine:
...
Showing results 1 to 23 of 23

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