Dear All,
I would like to split a file of the following format into multiple files based on the number in the 6th column (numbers 1, 2, 3...):
ATOM 1 N GLY A 1 -3.198 27.537 -5.958 1.00 0.00 N
ATOM 2 CA GLY A 1 -2.199 28.399 -6.617 1.00 0.00 ... (3 Replies)
Hi
I have some data in my Excel File.However all the data is in one single column.I want to split it into two columns.
Current Data:
1,Hi Everyone,I am
7,New To Dos,And
17,VB Script,i could
110,have tried this thing
1800,in UNIX
Desired Output
CELL1|CELL 2
1 |Hi... (3 Replies)
Hi All,
in bash I have a text file which is something like
7.96634E-07 1.0000 0.00000E+00 0.0000 0.00000E+00 0.0000 1.59327E-06 0.7071
2.23058E-05 0.1890 6.61207E-05 0.1098 1.13919E-04 0.0865 1.47377E-04 0.0747
....
....
0.00000E+00 0.0000 0.00000E+00 0.0000 ... (6 Replies)
Hi,
I have a similar input format-
A_1 2
B_0 4
A_1 1
B_2 5
A_4 1
and looking to print in this output format with headers. can you suggest in awk?awk because i am doing some pattern matching from parent file to print column 1 of my input using awk already.Thanks!
letter number_of_letters... (5 Replies)
Hi,
Anybody know how to print out the record that shown smallest number among column 3 and column 4
Case 1 Input :
37170 37196 77 51
37174 37195 73 52
37174 37194 73 53
Case 1 Output :
37170 37196 77 51
Case 2 Input :
469613 469660 73 ... (4 Replies)
Hi All,
I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for that corresponding column present in the trailer record.
For example, let's assume for column D... (9 Replies)
please write a shell script
Table
--------------------------
1 2 3 a b c
3 4 5 c d e
7 8 9 f g h
Output should be like this
---------------
1 2 3
3 4 5
7 8 9
a b c
c d e
f g h (1 Reply)
I want to split this with every 5 or 50 depend on how much data the file will have. And remove the comma on the end
Source file will have
001,0002,0003,004,005,0006,0007,007A,007B,007C,007E,007F,008A,008C
Need Output from every 5 tab and remove the comma from end of each row
... (4 Replies)
Discussion started by: ranjancom2000
4 Replies
LEARN ABOUT DEBIAN
tabify
textutil::tabify(3tcl) Text and string utilities, macro processing textutil::tabify(3tcl)__________________________________________________________________________________________________________________________________________________NAME
textutil::tabify - Procedures to (un)tabify strings
SYNOPSIS
package require Tcl 8.2
package require textutil::tabify ?0.7?
::textutil::tabify::tabify string ?num?
::textutil::tabify::tabify2 string ?num?
::textutil::tabify::untabify string ?num?
::textutil::tabify::untabify2 string ?num?
_________________________________________________________________DESCRIPTION
The package textutil::tabify provides commands that convert between tabulation and ordinary whitespace in strings.
The complete set of procedures is described below.
::textutil::tabify::tabify string ?num?
Tabify the string by replacing any substring of num space chars by a tabulation and return the result as a new string. num defaults
to 8.
::textutil::tabify::tabify2 string ?num?
Similar to ::textutil::tabify this command tabifies the string and returns the result as a new string. A different algorithm is used
however. Instead of replacing any substring of num spaces this command works more like an editor. num defaults to 8.
Each line of the text in string is treated as if there are tabstops every num columns. Only sequences of space characters containing
more than one space character and found immediately before a tabstop are replaced with tabs.
::textutil::tabify::untabify string ?num?
Untabify the string by replacing any tabulation char by a substring of num space chars and return the result as a new string. num
defaults to 8.
::textutil::tabify::untabify2 string ?num?
Untabify the string by replacing any tabulation char by a substring of at most num space chars and return the result as a new
string. Unlike textutil::tabify::untabify each tab is not replaced by a fixed number of space characters. The command overlays each
line in the string with tabstops every num columns instead and replaces tabs with just enough space characters to reach the next
tabstop. This is the complement of the actions taken by ::textutil::tabify::tabify2. num defaults to 8.
There is one asymmetry though: A tab can be replaced with a single space, but not the other way around.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO regexp(3tcl), split(3tcl), string(3tcl)KEYWORDS
formatting, string, tabstops
CATEGORY
Text processing
textutil 0.7 textutil::tabify(3tcl)