07-28-2009
Comparison of 2 files and Update them
Hi
I have 2 files where i save the IP adress of many printers that work on UNIX, one of these files, which is the 'Main File', is on a server call PROD, and the other one is on a different server call Al.
What I want, is to make a comparison between the 2 files, and then, copy the IPs that exist on the server PROD that are not on the Al server.
I understand that the diff command may be useful but I don't get the way yet.
Thax a lot!
Last edited by Athlon1; 07-28-2009 at 08:12 PM..
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hola. Tengo un problema. En un archivo tengo distintos campos y en alguno de ellos y en alguna linea me aparecen ******.
ej:
hola 0.1 ****** 85
adios 1.2 9650 23
gracias 2 ****** 54
bye 87 5666 89
hi ... (1 Reply)
Discussion started by: kekaes
1 Replies
2. Shell Programming and Scripting
Hola,
Estoy haciendo un script y queria de un archivo por ejemplo de 650 lineas, recortarlo y hacer archivos mas pequeños de 100 lineas, y que me salieran 7 archivos, por poner un ejemplo.
No tengo ni idea de hacerlo la verdad....xD
Un saludo y gracias! (3 Replies)
Discussion started by: uri_crack
3 Replies
3. Shell Programming and Scripting
Hola a todos les cuento que estoy haciendo un programa en bash y queria saber como puedo hacer para borrar lineas de un documento de las palabras que NO terminen en S con SED, es decir, mostrar solamente las que terminan con la letra S.
les cuento que probe con:
sed -e /$.*/d "$archivo" |... (1 Reply)
Discussion started by: adiegorpc
1 Replies
4. Shell Programming and Scripting
Hola tengo el siguiente script
#!bin/bash
cd $1
ls -lS $1
Me muestra de orden por tamaño de archivos de mayor a menor ./miscript.sh /root por ejmplo. Como puedo asignarle si al final de comando ponga -d me mustre solos las carpetas o si es -a me muestre los documentos.
./miscript.sh... (1 Reply)
Discussion started by: krlos07
1 Replies
5. Shell Programming and Scripting
Hola, he empezado la carrera de informática y tengo que hacer uno ejercicios con Cygwin ( mismos comandos que UNIX ).
Y en el ejercicio me dice que tengo que abrir un archivo .csv y que selecione las lineas en que en la tercera columna el valor sea 4 y en la cuarta columna el valor sea 2, he... (1 Reply)
Discussion started by: mcanhizares
1 Replies
LEARN ABOUT SUSE
nwfsctrl
NWFSCTRL(1) nwfsctrl NWFSCTRL(1)
NAME
nwfsctrl - Perform server command
SYNOPSIS
nwfsctrl [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -p ncpfs path ] -c | -o | -[f]d
nwfsctrl [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -p ncpfs path ] server command
DESCRIPTION
nwfsctrl performs command on server.
OPTIONS
-h
With -h nwfsctrl prints a little help text.
-S server
is the name of the server you want to use.
-U user
user is the user name to use for login. To set the server's time, you need supervisor privileges.
-P password
password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwfstime
prompts for a password.
-n
-n should be given if no password is required for the login. As you need supervisor privileges for setting the date and time, this
option is probably not used very often.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
-o
Open bindery.
-c
Close bindery.
-d
Down fileserver. This command will complain if there are open files on server.
-fd
Down fileserver, regardless of opened files.
load module options...
Load module module with options options... on server. Program will complain if module is already loaded.
unload module
Unload module module from server. Program will complain if module is not loaded.
mount volume
Mount volume volume.
dismount volume
Dismount volume volume. If there are open files on volume, server displays prompt on console. You must go to the server (or telnet/xcon-
sole) and hit Y or N to get beyond this point).
set variable = value
Set server settable variable variable to value value.
open bindery
Open bindery.
close bindery
Close bindery.
enable login
Enable login to file server.
disable login
Disable login to file server.
disable tts
Disable TTS. This probably does not work on Netware 4.11.
enable tts
Enable TTS. This probably does not work on Netware 4.11.
BUGS
Other commands are not written yet (volume, clear connection ...)
CREDITS
This utility was created by Petr Vandrovec (vandrove@vc.cvut.cz) and is part of ncpfs since 2.2.0.11.
nwfsctrl 2/12/1999 NWFSCTRL(1)