Search Results

Search: Posts Made By: amitrajvarma
2,125
Posted By amitrajvarma
Thanks All for the help
Thanks All for the help
2,125
Posted By amitrajvarma
shell command in AWK
Hi experts,

Sorry if it sounds basic question. I am trying to delete all folders except a particular and I have written the following. But its not deleting the folder.
Could you tell me whats...
Forum: Solaris 05-15-2008
119,239
Posted By amitrajvarma
Thanks for helping out. Amit
Thanks for helping out.

Amit
Forum: Solaris 05-13-2008
119,239
Posted By amitrajvarma
Command to know Solaris version
Hi,

Can anybody give me the command to know what is the solaris version
which is running on a server?

Thanks

Amit
16,499
Posted By amitrajvarma
I am working on Solaris ...SunOS 5.8
I am working on Solaris ...SunOS 5.8
16,499
Posted By amitrajvarma
Thx kris, I am getting the following output...
Thx kris,

I am getting the following output

> comm -23 file1 file2
CSCeb69473
CSCsg70355
CSCsj78917
CSCsj85065
CSCsl48743
CSCsl72823
16,499
Posted By amitrajvarma
comm not working
Hi

Sorry if this a repeat question,

I have the following two files. Both are sorted.

file1
----
CSCeb69473
CSCsg70355
CSCsj78917
CSCsj85065
CSCsl48743
CSCsl72823
CSCsl77748

file2...
2,381
Posted By amitrajvarma
writing to a file
Hi All.

I have the following simple shell program.

It reads a number from the "/user/amit/bldno";

for example: file "bldno" contains value "100"

After execution of the program the...
19,835
Posted By amitrajvarma
Hi, V3, Thanks, If the file1 is very large...
Hi, V3,
Thanks, If the file1 is very large will comm work. In that case what could be the alternativ?
Thx
Amit
19,835
Posted By amitrajvarma
Hi Anchal, I want to see the only contents...
Hi Anchal,

I want to see the only contents in file2 which are not there in file1. How do I achieve that with comm

Thx

Amit
19,835
Posted By amitrajvarma
Hi madhan, I have given extract of file1 and...
Hi madhan,

I have given extract of file1 and file2. Both are sorted,
when I execute it "comm -23 file-2.txt file-1.txt"..it is still showing "l76411". Ideally it should not right..bcos it is...
19,835
Posted By amitrajvarma
comm command
Hi

I have issue with "comm " command

file-1
----
l65059
l65407
l68607
l68810
l69143
l71310
l72918
l73146
l73273
l76411


file-2
-----
8,540
Posted By amitrajvarma
Thanks much Pankaj Rgds, amit
Thanks much Pankaj

Rgds,

amit
8,540
Posted By amitrajvarma
using rcp command
Hi All,

I am writing a shell script which will copy binaries from one remote server to local server.

I am using "rcp command". But "rcp" command asks for the login password when copying to...
2,698
Posted By amitrajvarma
undefined error
Hi

following is a simple shell script,
--------------------------------
#!/usr/bin/tcsh

u=$USER
echo $u
string="cp c2960-lanbase-mz /tftpboot/$u/c2960-lanbase-mz"
string2="cp...
3,624
Posted By amitrajvarma
Hi All, Sorry for you could not execute the...
Hi All,

Sorry for you could not execute the script.

But Following is what my script does.

1. Does a build (log is stored in c2960.txt)
2. Check if the build is successfull by searching the...
3,624
Posted By amitrajvarma
Hi All, Find below the full script. ...
Hi All,

Find below the full script.

problem is with "if ($t == 1)" within subroutine "sub c2960"


======== script ==================

#!/usr/bin/perl

$u=`whoami`;
chomp($u);

#print...
3,624
Posted By amitrajvarma
issue with if loop in perl
Hi

I have a log file, I am having problem with "if else" loop in my perl script which does, find a string in that file ,If that string is found append to success.txt else append it to failed.txt....
39,818
Posted By amitrajvarma
Thanks ..it worked with comm.. Happy Xmas &...
Thanks ..it worked with comm..

Happy Xmas & New Year folks

Amit
39,818
Posted By amitrajvarma
Hi murphy, how do I get the line which did...
Hi murphy,

how do I get the line which did not match? from your script

Pls help

Amit
39,818
Posted By amitrajvarma
Hi, when we do line by line compare for...
Hi,

when we do line by line compare for file1 and file2 , how do I extract the value in file1 which did not match that in file2.

Will it work even if sort, because there could be some order in...
39,818
Posted By amitrajvarma
Hi, My shell is tcsh, What I am...
Hi,

My shell is tcsh,

What I am looking for is,

array=`awk '{print $1}' /users/jon/list4.txt`
array2=`awk '{print $1}' /users/jon/list5.txt`

If value in array[] Not equal array2[]
then...
39,818
Posted By amitrajvarma
Hi, Thanks again, one more doubt, How do I...
Hi,

Thanks again, one more doubt,
How do I access the value in array(6).

Thx
amit
39,818
Posted By amitrajvarma
I am getting the following error, when I...
I am getting the following error,
when I executed,

# array=$(awk '{print $1}' /users/jon/list4.txt)
# for items in $array; do echo $items; done


syntax error at line 21: `array=$' unexpected
39,818
Posted By amitrajvarma
Hi madhan, Thanks much for the help. One...
Hi madhan,
Thanks much for the help.
One doubt, How do I print the array? if I use this

awk '{ arr[$1] }' filename

Thank
Amit
Showing results 1 to 25 of 45

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