Hi All,
I am talking about unix col(1) command used for some reverse line filtering etc.
And I notice that the stdout of this command is line buffered i.e. the stdout will flush the data in its buffer line by line. So the number of writes performed by stdout are more.
So now if I make stdout... (0 Replies)
Hi All,
I am talking about unix col(1) command used for some reverse line filtering etc.
And I notice that the stdout of this command is line buffered i.e. the stdout will flush the data in its buffer line by line. So the number of writes performed by stdout are more.
So now if I make stdout... (0 Replies)
Hello,
I have a 1.6 GB file that I would like to modify by matching some ids in col1 with the ids in col 1 of file2.txt and save the results into a 3rd file.
For example:
File 1 has 1411 rows, I ignore how many columns it has (thousands)
File 2 has 311 rows, 1 column
Would like to... (7 Replies)
SW_dist_intr false Enable SW distribution of interrupts True
autorestart true Automatically REBOOT OS after a crash True
boottype disk N/A False
capacity_inc 1.00 ... (7 Replies)
Hello everyone,
I am writing a script to process data from the ATP world tour.
I have a file which contains:
t=540 y=2011 r=1 p=N409
t=540 y=2011 r=2 p=N409
t=540 y=2011 r=3 p=N409
t=540 y=2011 r=4 p=N409
t=520 y=2011 r=1 p=N409
t=520 y=2011 r=2 p=N409
t=520 y=2011 r=3 p=N409
The... (4 Replies)
Hello,
I have some tab delimited data and I need to move the last col. I could hard code it,
awk '{ print $1,$NF,$2,$3,$4,etc }' infile > outfile
but it would be nice to know the syntax to print a range cols.
I know in cut you can do,
cut -f 1,4-8,11-
to print fields 1,... (8 Replies)
Hi,
Please help with this.
I have several excel files (with and .xlsx format) with 10-15 columns each.
They all have the same type of data but the columns are not ordered in the same way.
Here is a 3 column example. What I want to do add the alphabet
from column 2 to column 3, provided... (9 Replies)
Hi,
i was tried using the awk command for replacing '-' in the second column. but the below command replacing the entire file.
cat 1.txt |awk '{gsub(/-/,"")}1'
Input file
1,2,3,-4,5,6
1,-2,3,4,5,-6
1,2,3,4,5,6
1,-2,3,4,-5,6
Output file
1,2,3,-4,5,6
1,2,3,4,5,-6
1,2,3,4,5,6... (3 Replies)
Hello experts, I have matrices sorted by position, there are 400k rows, 3000 columns.
ID CHR POS M1 M2 M3 M4 M5
ID1 1 1 4.6 2.6 2.1 3.5 4.2
ID2 1 100 3.6 2.9 3.2 2.6 2.5
ID3 1 1000 4.1... (9 Replies)
Discussion started by: senhia83
9 Replies
LEARN ABOUT ULTRIX
col
col(1) General Commands Manual col(1)Name
col - filter reverse line feeds
Syntax
col [-options]
Description
The command reads the standard input and writes the standard output. It performs the line overlays implied by reverse line feeds (ESC-7 in
ASCII) and by forward and reverse half line feeds (ESC-9 and ESC-8, respectively). The command is particularly useful for filtering multi-
column output made with the command of and for filtering output resulting from the preprocessor.
Although accepts half line motions in its input, it does not normally output them. Instead, text that would appear between lines is moved
to the next lower full line boundary.
The control characters SO (ASCII code 017) and SI (ASCII code 016) are assumed to start and end text in an alternate character set. The
character set (primary or alternate) associated with each printing character read is remembered. On output, SO and SI characters are gen-
erated where necessary to maintain the correct treatment of each character.
The command normally converts white space to tabs to shorten printing time. If the -h option is given, this conversion is suppressed.
On input, the only control characters accepted are <space>, <backspace>, <tab>, <return>, <newline>, etc... The VT character is an alter-
nate form of full reverse linefeed, included for compatibility with earlier programs of this type. All other non-printing characters are
ignored.
Options-b Assumes that the output device does not have backspacing.
-f Suppresses moving half lines to the next full line.
-h Suppresses conversion of white space to tabs.
-p Forces through unchanged any unknown escape sequences that are found in its input. This option should be used with care.
-x Suppresses conversion of white space to tabs (same as -h).
Restrictions
Cannot back up more than 128 lines.
No more than 800 characters, including backspaces, on a line.
See Alsotbl(1), nroff(1)col(1)