Search Results

Search: Posts Made By: heartwork
5,095
Posted By heartwork
I think the code should be: nawk 'FNR==NR...
I think the code should be:


nawk 'FNR==NR {file2[$2];next} !($2 in file1)' file2 file1


But I've checked on the test machines I am allowed to write and run scripts and there I cannot use...
5,095
Posted By heartwork
A line in file1: GAGLIARDI 743 GILBERTO...
A line in file1:

GAGLIARDI 743 GILBERTO TREZZANO - DG 30450 3TECH 3TECH 3TECH


A line in file2:

GAGLIARDI 743 GILBERTO TREZZANO - DG 30450 SupportCRM TeamLead 3TECH
5,095
Posted By heartwork
Both files contains thousands of lines...
Both files contains thousands of lines...
5,095
Posted By heartwork
An example of line in file1 is like: ...
An example of line in file1 is like:



GAGLIARDI 7 GILBERTO TREZZANO - DG 30450 3TECH 3TECH 3TECH


All the lines are of this form.
Column 2 is interesting for me.

file2 might...
5,095
Posted By heartwork
Script that extract some lines from a file lookin into another
I want a ksh script that parse two files (text files, actually my original files are .xls) - input data:

- one file file1 containig lines separated by spaces (or other delimiter)
- 2nd one file2...
4,402
Posted By heartwork
Sorry I have misstyped 'coz I was really...
Sorry I have misstyped 'coz I was really rushing...

Obviously I used inside the script for local node - node1:
su - oper -c "APP_COMMAND -paramters"

Meanwhile on node2:
rlogin node2 su - oper...
4,402
Posted By heartwork
rsh problem in ksh
On a SUN cluster (ksh - Solaris 8 SPARC) I run a script which at some time has to perform a rsh command on the alternate node but with some other user (let's say "oper") so it should be like:

rsh...
1,969
Posted By heartwork
dummie ksh
Please help me with a newbie ksh question:


I want a script in ksh (under Solaris 8 - SPARC) who runs a "ls -lR" command in some directory and it looks after all the files with the same date as...
4,777
Posted By heartwork
It works to group some part using "{" and "}" and...
It works to group some part using "{" and "}" and redirect the output OK but in fact I want both - the output to be displayed and meanwhile to be redirected in some result file running the same...
4,777
Posted By heartwork
Running a check platform script
Hi,

I want to run a check platform & application script under ksh (Soaris boxes).
It runs some commands and it take some time.
I want to customize it like that:

- output is too big, hence I...
2,787
Posted By heartwork
I really don't know how to use those 'calling'...
I really don't know how to use those 'calling' and the 'called' scripts ...
2,787
Posted By heartwork
For some machines it worked, but not for all of...
For some machines it worked, but not for all of them...
Thanks a lot guys!
2,787
Posted By heartwork
I have tried... no, I still don't get the...
I have tried... no, I still don't get the reason...
2,787
Posted By heartwork
It doesn't work either... :o
It doesn't work either... :o
2,787
Posted By heartwork
rsh problem
I tried to execute by rsh a script, but I did not succeed.
You can execute only commnads (not scripts) by rsh or there are some other restrictions?!?

root@a1 #pwd
/
root@a1 #rsh a2 monitor...
5,512
Posted By heartwork
I have tested too and it works fine on our...
I have tested too and it works fine on our Solaris 5.8! Thanks a lot man! :)
5,512
Posted By heartwork
Just copy & paste... 1st: root@carp #...
Just copy & paste...

1st:

root@carp # X=voms21
root@carp # numofchar=${#X}
root@carp # numofcharminus1=`expr $numofchar "-" 1` ...
5,512
Posted By heartwork
I made a small test script - just the same bunch...
I made a small test script - just the same bunch of commands inside a script. I can't remember the error messages exactly and right now I can't connect on that sparcs... when I can log in ... I'll...
5,512
Posted By heartwork
If thishost is "a1bc11" then basehost is "abc"...
If thishost is "a1bc11" then basehost is "abc" and thathost is "abc2"...
5,512
Posted By heartwork
Sorry I had no intention... I am searching...
Sorry I had no intention... I am searching desperately an answer to my problem... even it might be easy...
5,512
Posted By heartwork
The other node name in a SUN cluster
Hello,

Under ksh I have to run a script on one of the nodes of a Solaris 8 cluster which at some time must execute a command on the alternate node:
# rsh <name> "command"

I have to implement...
5,512
Posted By heartwork
The other node name of a SUN cluster
Hello,

Under ksh I have to run a script on one of the nodes of a Solaris 8 cluster which at some time must execute a command on the alternate node:
# rsh <name> "command"

I have to implement...
Showing results 1 to 22 of 22

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