I need to remove every second and every third line from a file. My idea was to do it in two operations. First every third line, then every second line. The problem is that i can't find out how to do it. I tried to look for some sed oneliners, but couldn't find any.
Suggestions? (4 Replies)
Hi,
I need some help in removing the header (first line) and the trailer (last line) in a give file...
The data file actually comes in EBCDIC format and I converted it into ASCII..
Now I need to strip off the first line and the last line..
I think we can use sed to do something like this:... (2 Replies)
Is there an easy way to view all printers on a local
machine via command line or a script?
I'm looking for the equivalent of clicking on
"START, CONTROL PANEL, PRINTERS AND FAXES"
to view the devices.
I then want to cat it to a file where I would use
it later.
Thanks (3 Replies)
Hi all, i have a text file similar to belowA1
A2
A3
B1 ... .... *** # first occurance
B1 ... .... *** # second occurance
B1 ... .... *** # third occurance My desired output is B1 ... .... *** # second occurance
B1 ... .... *** # third occurance I want to remove the first line that is after... (3 Replies)
Hi ,guys. I have one question:
I want to write a script which removes a line with certain string from a file, for example
The name of the file is: "passwd", the contents of it is below:
*************************
...
brownj2:x:5000:
hynesp:x:5001:
leeb:x:5002
dioxna:x:5003
...
... (2 Replies)
Is there an easy way to remove the first line of a file so that the file:
aaron
benjamin
cecilia
daniel
elliot
fernando
would become
benjamin
cecilia
daniel
elliot
fernando (4 Replies)
Hi all,
I am requested to move printer definitions/configurations to new box (Solaris 10). The old box (Solaris 8) only has /etc/printers.conf configured. There are no /etc/lp/interface or /etc/lp/printer files.
What I did was, I just moved /etc/printers.conf file to the new box and... (1 Reply)
I have a file output.txt. File looks like this
name1 10
name2 2
name3 5
I get a number n and I need to remove all lines which has number (after name) smaller or equal to n number.
After that I need to write lines from file and my output must be like this:
Output: 'name1 10'
Output: 'name2... (1 Reply)
Discussion started by: kubo12312
1 Replies
LEARN ABOUT CENTOS
cups-snmp
cups-snmp(8) Apple Inc. cups-snmp(8)NAME
snmp - cups snmp backend
SYNOPSIS
/usr/lib/cups/backend/snmp ip-address-or-hostname
lpinfo -v --include-schemes snmp
DESCRIPTION
The CUPS SNMP backend provides legacy discovery and identification of network printers using SNMPv1. When used for discovery through the
scheduler, the backend will list all printers that respond to a broadcast SNMPv1 query with the "public" community name. Additional queries
are then sent to printers that respond in order to determine the correct device URI, make and model, and other information needed for
printing.
In the first form, the SNMP backend is run directly by the user to look up the device URI and other information when you have an IP address
or hostname. This can be used for programs that need to configure print queues where the user has supplied an address but nothing else.
In the second form, the SNMP backend is run indirectly using the lpinfo(8) command. The output provides all printers detected via SNMP on
the configured broadcast addresses. Note: no broadcast addresses are configured by default.
MIBS
The CUPS SNMP backend uses the information from the Host, Printer, and Port Monitor MIBs along with some vendor private MIBs and intelli-
gent port probes to determine the correct device URI and make and model for each printer.
CONFIGURATION
The SNMP backend reads the /etc/cups/snmp.conf configuration file, if present, to set the default broadcast address, community name, and
logging level. The configuration file is documented in cups-snmp.conf(5). The DebugLevel value can be overridden using the CUPS_DEBUG_LEVEL
environment variable and the MaxRunTime value can be overridden using the CUPS_MAX_RUN_TIME environment variable.
SEE ALSO backend(7), cups-snmp.conf(5), cupsd(8), cupsd.conf(5), filter(7), lpinfo(8),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2013 by Apple Inc.
23 April 2012 CUPS cups-snmp(8)