If you use od to find a separator character, you can use tr to change it to linefeed (\12). tr uses octal by default after '\'. For instance, if the lines are carraige return separated:
Hi I have a file which contains data (list of data) and I want to put a number with bracket 1) 2) 3) etc at the beginning of every successive line
I can do it with SED and I can also do it using the nl route but am looking for a different method.
I'm guessing I would need some sort of loop... (3 Replies)
Hi , i need help with formatting a file i am generating which is to be used in mainframe app so the file length has to be 80 for each rows. The file that m able to generate looks like this (consists of two rows only)
E
1006756
1006756
Active
T
E
0551055
0551055
Active
T
I... (2 Replies)
Hello Experts,
I have a timestamp(6) column in a .csv data file , format of the data is as below:-
ETCT,P,Elec, Inc.,abc,11/5/2010 4:16:09.000000 PM,Y,Y,Y
I want the timestamp column to be properly formatted like
11/05/2010 04:16:09.000000 PM
Currently the "0" is missing with... (3 Replies)
Hi,
I have 3 kind of files that contains date data needed to be masked. The file is like this:
File 1 (all contents in 1 line):
input:DTM+7:201103281411:203'LOC+175+SGSIN:139:6+TERMINATOR......'DTM+132:201103281413:203'LOC....
output:... (4 Replies)
Hi Guys,
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
XYZ
ABC
PQR
..
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
hi all,
i am new to unix forum,i want do some large data format work. pls help me to format the file.
i have attched data file to be formated in that two set of line item is there . first set header & second set header to be come in to single header item same as like all the data also.
... (2 Replies)
Hello All,
We are receiving UTF-16 formatted file and when i vi the file in Linux OS i am seeing some weird characters, is this because in my .bashrc profile the language variable has been set to LC_ALL=en_US.UTF-8 and hence the reason i am not able to read the UTF-16 formatted file properly? or... (2 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Here i am having ".tmideg0"hidden file .
I have made programm but it doesnot work
#!/usr/bin/perl
$runDir = $ENV{"REGR_RUN_DIR"};
@files = (<*.tmideg0> <*.tmideg1>);
foreach $FILE (@files)
{
open (IN, $FILE) || die "Couldn't open $FILE for reading";
open (OUT,... (2 Replies)
Discussion started by: avi1991nash
2 Replies
LEARN ABOUT OSF1
colcrt
colcrt(1) General Commands Manual colcrt(1)NAME
colcrt - Filters text processor output for screen previewing
SYNOPSIS
colcrt [- -2] [file...]
The colcrt command filters output from text processors such as nroff so that it can be previewed on a cathode ray tube (CRT).
OPTIONS
Suppresses underlining; this is useful for previewing boxed tables from tbl. Causes all half-lines to be printed, effectively doublespac-
ing the output. This is useful when printing output with subscripts and superscripts on a line printer, where half-lines do not normally
appear.
DESCRIPTION
The colcrt command provides virtual half-linefeed and reverse linefeed sequences for terminals without such capability, and on which over-
striking is destructive. The colcrt command changes underline characters to dashes and places them and half-line characters on new lines in
between the normal output lines.
NOTES
colcrt cannot back up more than 102 lines. General overstriking is lost; as a special case a | (vertical bar) overstruck with a - (dash)
or _ (underline) becomes a + (plus sign). Lines are trimmed to 132 bytes.
EXAMPLES
The following command line illustrates a typical use of colcrt: tbl exum2.n | nroff -ms | colcrt - | more
SEE ALSO
Commands: col(1), deroff(1), more(1), neqn(1), nroff(1), pg(1), tbl(1), ul(1)colcrt(1)