Converting a text file with irregular spacing into a space delimited text file?
I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:
Thanks a lot!
Last edited by radoulov; 09-01-2011 at 06:01 PM..
Reason: Code tags, please!
Hi
I am trying to search a firewall syslog space delimeted file for all of the different tcp and udp destination ports.
I know that grep will find lines that contain specific text. And I have tried using the the the cut command to cut out of the file certain colums. However the test I am... (6 Replies)
Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
how to replace the 3rd colum? Each line begins similarly, but they all ends variously.
XX YY 03 variable text here
XX YY 03 more variable text here
XX YY 03 even more variable text here really long setence
XX YY 03 variable numbers also appear 03 11. 123 456
XX YY 03 the occasional comma,... (4 Replies)
I have a space delimited text file with 1,000,000+ columns and 100 rows. I want to delete columns 2 through 5 (2 and 5) included from the text file. How do I do that? Thanks. (3 Replies)
I have this space delimited large text file with more than 1,000,000+ columns and about 100 rows. I want to delete all the cells that consist of just 2 (leave 2's that are not by themselves intact):
File before modification
aa bb cc 2 NA100 dd
aa b1 c2 2 NA102 de
File after modification... (1 Reply)
I have a space delimited text file with 1,000,000+ columns? I would only like to view specific ones (let's say through 1:10), how can I do that? Thanks! (3 Replies)
I have a space delimited text file with two columns. I would like to add NA to the first column of the text file.
Input:
19625 10.4791768259
19700 10.8146489183
19701 10.9084026759
19702 10.9861346978
19703 10.9304364984
Output:
NA19625 10.4791768259
NA19700 10.8146489183... (1 Reply)
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
LEARN ABOUT PLAN9
ppp
PPP(1) General Commands Manual PPP(1)NAME
pppclient, pppserver - point to point protocol
SYNOPSIS
pppclient [ -d ][ -b baudrate ][ -i myipaddr ][ -p peeripaddr ][ dialdevice ]
pppserver [ -d ] ndev myipaddr firstipaddr firstdev [ baud0 baud1 ... ]
DESCRIPTION
The Point to Point Protocol is used to encapsulate Internet Protocol packets for transfer over serial lines or other protocol connections.
Pppclient makes a connection to a PPP server and passes IP packets over the connection. If dialdevice is omitted, standard input and out-
put are used as the connection. If dialdevice begins with a slash, pppclient assumes it is a file name, open(2)'s it, and uses the result
as the connection. Otherwise, dialdevice is passed as the destination address to dial(2) to set up the connection.
If the connection is successful, pppclient creates a pipe, pushes the IP line discipline onto it, and sets the local and remote addresses
of the IP interface to myipaddr and peeripaddr. It then loops transferring packets between the pipe and the connection. If either myi-
paddr or peeripaddr is omitted, pppclient requests them from the server.
The options are
d print debugging information.
b baud rate of the serial line.
p peer ip address (in case the peer asks for its ip address over IPCP).
i the local ip address to be established for this connection.
Pppserver treats serial lines as PPP connections, switching packets between them and the local machine. It creates a pipe for a local IP
interface (address myipaddr), opens a set of serial lines, and switches packets between the local interface and the serial lines. Ndev
specifies the number of serial devices to serve. The devices are named /dev/eia{firstdev} through /dev/eia{firstdev+ndev-1}. Their remote
IP addresses are firstipaddr through firstipaddr+ndev-1. The default baud rate is 9600. If any arguments follow firstdev (baud0, baud1,
...), they are used as baud rates for the serial lines. The only option, -d, turns on debugging output.
Both pppclient and pppserver accept all options defined in RFCs 1331 and 1332.
EXAMPLES
Start up a server for serial lines /dev/eia[2-6] with remote IP addresses 131.107.1.100 through 131.107.1.103 and baud rates of 19200,
2400, 9600, 9600. The local IP address is 131.107.1.1.
pppserver 4 131.107.1.1 131.107.1.100 2 19200 2400
SOURCE
/sys/src/cmd/ppp
PPP(1)