Hello! I have a text file containing
some text : : : bla
other text : : : bla
any text : : : bla
containing 3 columns separated by the ':' sign.
Now i want to insert 'this' in the 2nd line after the 2nd column-deliminiter (i.e. into 3rd column), like
some text : : : bla
other text :... (1 Reply)
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
I'm trying to use sed to insert data at a specific column, let's say my data looks like this:
0553 1828
0552 1829
0550 1829
0549 1830
0548 1831
what I want is this:
timein 0553 timeout 1828
timein 0552 timeout 1829
timein 0550 timeout 1829
timein 0549 timeout 1830
timein 0548... (5 Replies)
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Hi Everybody,
I am just new to UNIX as well as to this forum. I have a text file with 10,000 coloumns and each coloumn contains values separated by space. I want to separate them into new coloumns..the file is something like this
as ad af 1 A
as ad af 1 D
...
...
1 and A are in one... (7 Replies)
Hi,
I want to insert the text 'Unknown' in 2 specific columns in a csv file (actually | separated) if the column is blank. Its always the same columns.
I have tried using sed: sed "s/||/|Unknown|/g"
but there are occasion where other fields are blank and they need to be left blank. This... (4 Replies)
In Perl. ***edited question below***
Hey all, I am teaching myself some simple CSV file manipulation and have become a little stuck. Say I have the following layout in the CSV file:
age,name,locationIs it possible to INSERT data into the CSV into the correct age order. For example, if I had... (1 Reply)
Hello,
I have some problem in inserting the space for the pairs of columns.
I have the input file :
I used this code below in replacing it using space in specific column (replace space in each two columns)
sed -e "s/,/ /2" -e "s/,/ /3" inputfile
Output showed :
However, I have many... (3 Replies)
Discussion started by: awil
3 Replies
LEARN ABOUT DEBIAN
p910nd
P910ND(8) System Manager's Manual P910ND(8)NAME
p910nd - port 9100+n printer daemon
SYNOPSIS
p910nd [-f device] [-i bindaddr] [-bv] [0|1|2]
DESCRIPTION
p910nd is a small daemon that copies any data received on the port it is listening on to the corresponding printer port. It is primarily
intended for diskless Linux hosts running as printer drivers but there is no reason why it could not be used on diskful hosts. Port 9100
is copied to /dev/lp0, 9101 to /dev/lp1 and 9102 to /dev/lp2. The default is port 9100 to /dev/lp0.
The -f option can be used to specify a different printer device, e.g. /dev/usblp0.
The -i option can be used to specify binding to one address instead of all interfaces which is the default.
The -b option turns on bidirectional copying.
The -v option shows the version number.
INSTALLATION
p910nd can be run as a standalone daemon or from (x)inetd. It will automatically detect if it is running under (x)inetd.
A sample SysVinit script, p910nd.sh, is provided for operation as a daemon. p910nd will change its name under ps to match the printer
port, i.e. p9100d, p9101d and p9102d.
When running under (x)inetd, the /etc/inetd.conf entry should look something like this (with tcpwrappers protection):
p9101 stream tcp nowait root /usr/sbin/tcpd /sbin/p910nd
Don't forget to add an entry in /etc/services for the corresponding port.
If operating with lprng, use the host%port syntax for the printer device to send jobs to it.
If operating with CUPS, this is supported as the AppSocket protocol, also known as the JetDirect (probably TM) protocol.
If operating with classic Berkeley lpd, a sample client, client.pl, is provided. This should be installed as the ifilter (if=) in
/etc/printcap. banner.pl should be installed as the ofilter (of=) in /etc/printcap. It may be necessary to create a dummy spool file for
lpd (lp=). This file will be opened but not written to. The corresponding C versions are left as an exercise for the reader.
When running under inetd, more than one instance could be started. To avoid problems with multiple instances attempting to access the
printer at the same time, make sure that only one client is active at any one time. This can be done by designating one host as the spooler
and sending all jobs to this host. You will probably need to set up an intermediate queue anyway to provide print job filtering.
If built with USE_WRAP, it uses the libwrap library (tcpwrappers). Access control can be done with /etc/hosts.allow and /etc/hosts.deny.
The service name is p910nd.
DIAGNOSTICS
p910nd logs error messages to syslog.
SEE ALSO printcap(5), hosts_access(5)FILES
/var/run/p9100d.pid, /var/lock/p910nd/p9100d, /etc/hosts.allow, /etc/hosts.deny
COPYRIGHT
p910nd is under the GNU Public License Version 2
AUTHOR
Ken Yap (greenpossum ATSIGN users PERIOD sourceforge PERIOD net)
DATE
Version 0.95 February 2011
16 February 2011 P910ND(8)