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 DEBIAN
cupsd
cupsd(8) Apple Inc. cupsd(8)NAME
cupsd - cups scheduler
SYNOPSIS
cupsd [ -c config-file ] [ -f ] [ -F ] [ -h ] [ -l ] [ -t ]
DESCRIPTION
cupsd is the scheduler for CUPS. It implements a printing system based upon the Internet Printing Protocol, version 2.1. If no options are
specified on the command-line then the default configuration file /etc/cups/cupsd.conf will be used.
OPTIONS -c config-file
Uses the named configuration file.
-f
Run cupsd in the foreground; the default is to run in the background as a "daemon".
-F
Run cupsd in the foreground but detach the process from the controlling terminal and current directory. This is useful for running
cupsd from init(8).
-h
Shows the program usage.
-l
This option is passed to cupsd when it is run from launchd(8).
-t
Test the configuration file for syntax errors.
COMPATIBILITY
cupsd implements all of the required IPP/2.1 attributes and operations. It also implements several CUPS-specific administration operations.
SEE ALSO backend(7), classes.conf(5), cups-deviced(8), cups-driverd(8), cups-lpd(8), cups-polld(8), cupsd.conf(5), filter(7), launchd(8),
mime.convs(5), mime.types(5), printers.conf(5),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2011 by Apple Inc.
9 March 2009 CUPS cupsd(8)