12-14-2016
Align columns
I have a text file that I filtered using awk. I only exctracted two columns.
I want those two columns to be aligned. Most of the answers I found was to use `column -t` command. I tried that but I am getting a
`bash: column: command not found`.
Is there another way to align columns aside from `column -t`?
Thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is it any way exept playing with spaces (tabs don't help) (3 Replies)
Discussion started by: galinaqt
3 Replies
2. Shell Programming and Scripting
hi all,
i have a big problem, and i donīt know what to do.
i have a flat file with several fields, which are separated by ";" like this:
5656838-7B;97030000-7;*;V16106133 ;1;1;
4612062-0B;97030000-7;*;C14038149 ;1;2;
8044938-0B;97030000-7;*;V16034219 ;1;2;
where B is a blank space.
... (2 Replies)
Discussion started by: DebianJ
2 Replies
3. UNIX for Dummies Questions & Answers
I need to align text from a file that has columns seperated by spaces and commas. Any ideas?
Text is similar to this.
File Name is Test.
05/14/06 13:46:56.575 ,TEST,5,123,1234,123,12345,12,12.2,2.1,4.5,5.23
05/14/06 13:49:58.009 ,TEST,6,456,456.7,45,4.56,453,34,54.3,3.2,6.456 (9 Replies)
Discussion started by: earlepps
9 Replies
4. Shell Programming and Scripting
HI ,
I am new to shell scripting i m getting the below format like this
Name FirstName Lastname
------ --------- ----------
Name1 Balaji NandaKishore
Name123 Vijaya krsihna
... (5 Replies)
Discussion started by: Lucky123
5 Replies
5. Shell Programming and Scripting
Hello I am a newbie in scripting and I am hoping someone may help with a method of aligning or tabbing selected text as its output.
For example, using the SED command to extract paragraphs containing AA BBB CCC
sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;/BBB/!d;/CCC/!d'
How could I say, get the... (18 Replies)
Discussion started by: lostincashe
18 Replies
6. Shell Programming and Scripting
below line is one by one print
audio_play PASS
boot_check FAIL
ethernet_change_mac NIC_82574L PASS
gps_ublox_neo FAIL
storage_bonnie USB2 PASS
storage_copy_big_file USB2 PASS
I would like below format ... (7 Replies)
Discussion started by: yanglei_fage
7 Replies
7. Shell Programming and Scripting
Hi,
I need your help to align data from paragraph.
It's to :
- delete the lign contain NDS
- align data between paragraph start to "ND=" from second "ND="
example of file:
@
ABOIL;
@
CEN=1/15-05-23/09 H 06 MN 18/LISTAGE CARACTERISTIQUES D'ABONNES
TRAITEMENT TGLAIL ACC... (1 Reply)
Discussion started by: vremen3
1 Replies
8. Shell Programming and Scripting
Hi,
I have a question on how to align columns in shellscipt.
SAMPLE
2015-07-15 09:01:00.0 |TCSERVER01 |10965
2015-07-15 09:02:00.0 |TCSERVER01 |4752
2015-07-15 09:03:00.0 |TCSERVER01 |4805
2015-07-15 09:04:00.0 |TCSERVER01 |3690
2015-07-15 09:01:00.0 |TCSERVER02 |8703
2015-07-15... (1 Reply)
Discussion started by: reignangel2003
1 Replies
9. Shell Programming and Scripting
Hello again,
I'm having a issue with a contact form. I want the input fields to be aligned on same row and I really dont know how to do it.
I attached a image for you to understand what i am trying to do.
<BR>
<label for="name" class="required">
Name <strong... (1 Reply)
Discussion started by: galford
1 Replies
10. Shell Programming and Scripting
Hi,
Anyone can help on how to re align my data in one row using sed.
test.csv
"url1","abc","project url1"
2016-08-16
"url2,"microsoft","project url2"
2016-08-18
need output like this
"url1","abc","project url1","2016-08-16"
"url2,"microsoft","project url2","2016-08-18"
Thanks in... (8 Replies)
Discussion started by: fspalero
8 Replies
COLUMN(1) BSD General Commands Manual COLUMN(1)
NAME
column -- columnate lists
SYNOPSIS
column [-tx] [-c columns] [-s sep] [file ...]
DESCRIPTION
The column utility formats its input into multiple columns. Rows are filled before columns. Input is taken from file operands, or, by
default, from the standard input. Empty lines are ignored.
The options are as follows:
-c Output is formatted for a display columns wide.
-s Specify a set of characters to be used to delimit columns for the -t option.
-t Determine the number of columns the input contains and create a table. Columns are delimited with whitespace, by default, or with
the characters supplied using the -s option. Useful for pretty-printing displays.
-x Fill columns before filling rows.
ENVIRONMENT
The COLUMNS, LANG, LC_ALL and LC_CTYPE environment variables affect the execution of column as described in environ(7).
EXIT STATUS
The column utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
(printf "PERM LINKS OWNER GROUP SIZE MONTH DAY " ;
printf "HH:MM/YEAR NAME
" ;
ls -l | sed 1d) | column -t
SEE ALSO
colrm(1), ls(1), paste(1), sort(1)
HISTORY
The column command appeared in 4.3BSD-Reno.
BUGS
Input lines are limited to LINE_MAX (2048) bytes in length.
BSD
July 29, 2004 BSD