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-browsed.conf
cups-browsed.conf(5)cups-browsed.conf(5)NAME
cups-browsed.conf - server configuration file for cups-browsed
DESCRIPTION
The cups-browsed.conf file configures the cups-browsed daemon. It is normally located in the /etc/cups directory. Each line in the file can
be a configuration directive, a blank line, or a comment. Comment lines start with the # character.
DIRECTIVES
The BrowseAllow directive specifies a system or network to accept CUPS browse packets from. The default is to accept browse packets from
all hosts when BrowseRemoteProtocols uses the CUPS protocol.
BrowseAllow 192.168.7.20
BrowseAllow 192.168.7.0/24
BrowseAllow 192.168.7.0/255.255.255.0
The BrowsePoll directive polls a server for available printers once every 60 seconds. Multiple BrowsePoll directives can be specified to
poll multiple servers. The default port to connect to is 631. BrowsePoll works independently of whether CUPS browsing is activated in
BrowseRemoteProtocols.
BrowsePoll 192.168.7.20
BrowsePoll 192.168.7.65:631
BrowsePoll host.example.com:631
The BrowseLocalProtocols directive specifies the protocols to use when advertising local shared printers on the network. The default is
"none". Control of advertising of local shared printers using dnssd is done in /etc/cups/cupsd.conf.
BrowseLocalProtocols none
BrowseLocalProtocols CUPS
The BrowseRemoteProtocols directive specifies the protocols to use when finding remote shared printers on the network. Multiple protocols
can be specified by separating them with spaces. The default is "dnssd cups".
BrowseRemoteProtocols none
BrowseRemoteProtocols CUPS dnssd
BrowseRemoteProtocols CUPS
BrowseRemoteProtocols dnssd
The BrowseProtocols directive specifies the protocols to use when finding remote shared printers on the network and advertising local
shared printers. "dnssd" is ignored for BrowseLocalProtocols. Multiple protocols can be specified by separating them with spaces. The
default is "none" for BrowseLocalProtocols and "dnssd cups" for BrowseRemoteProtocols.
BrowseProtocols none
BrowseProtocols CUPS dnssd
BrowseProtocols CUPS
BrowseProtocols dnssd
SEE ALSO cups-browsed(8)
/usr/share/doc/cups-filters/README
AUTHOR
The authors of cups-browsed are listed in /usr/share/doc/cups-filters/AUTHORS.
This manual page was written for the Debian Project, but it may be used by others.
29 June 2013 cups-browsed.conf(5)