9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to get this to display vertically like in a table but it keeps jumping to a new line
dev=$(df -h | grep ^/dev | cut -d " " -f1)
dev1=$(df -h | grep ^/dev | cut -f 2 -d "%")
dev2=$(df -h | grep ^/dev | cut -f 14-16 -d " ")
dev3=$(df -h | grep ^/dev | cut -f 18-20 -d " ")... (1 Reply)
Discussion started by: gjanisse
1 Replies
2. Shell Programming and Scripting
hi,
I have a text and values are seperated by tab. each line has different tabs. I am getting values and writing values in a specific format using:
awk 'NR>1 {print "First value: "$1" Second:"$2" Third: "$3 } /home/gcsw/readtext.txt > /home/gcsw/writeresults.txt
but how can i determine... (3 Replies)
Discussion started by: gc_sw
3 Replies
3. Shell Programming and Scripting
Hi,
I have a file that has too many tabs between columns. I cannot get the tabs out. Basically the tab between column 1 and 2 are fine but between 2/3, 3/4 etc are like 5 tabs. How do I get rid of these 5 tabs so its just 1 tab.
thanks (3 Replies)
Discussion started by: phil_heath
3 Replies
4. UNIX and Linux Applications
Hi People,
Does gvim latest versions support tabs. I would like to open different files in tabs rather than new windows or split windows. I would like to whether the current version supports it, if it doesn't then how to add such feature.
Thanks,
:) (2 Replies)
Discussion started by: rimser9
2 Replies
5. Shell Programming and Scripting
When formatting a script let's say for instance the following:
case ${choice} in
1)
vi ${tmp1}.tmp
# overwrite the tmp1 var with any user changes
cp ${tmp1}.tmp ${tmp1}
;;
... (2 Replies)
Discussion started by: llsmr777
2 Replies
6. Shell Programming and Scripting
I have a tab delimited file with many lines, one for each record.
each line is tab delimited with a tab before the first data field, a tab between each data field, and a tab after the last data field before it moves onto the next line.
I need to remove only the preceeding tab before the first... (2 Replies)
Discussion started by: djkane
2 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
Just wanted to know if it is possible to have an xterm be display on two different machine and show the one session. Somthing like X forwarding be allow the local machine to also display the xterm session.
Thanks (0 Replies)
Discussion started by: larryase
0 Replies
8. Shell Programming and Scripting
Hi Everyone,
Im trying to write a shell script that removes a "newline character followed by a tab" throughout a file. basically it should get rid of it. Here's an example
File Before
The cat sat on the
mat
File After
The cat sat on the mat
This message writing screen has... (7 Replies)
Discussion started by: nbvcxzdz
7 Replies
9. UNIX for Dummies Questions & Answers
I am on AIX 5.1
If I have a crontab that looks like this
01 1 * * 6
What does the 6 mean ? if the * means that everyday it should run then why would the 6th day be signified ? Shouldn't it be a * also?
Thanks (1 Reply)
Discussion started by: rocker40
1 Replies
TABS(1) BSD General Commands Manual TABS(1)
NAME
tabs -- set terminal tabs
SYNOPSIS
tabs [-n|-a|-a2|-c|-c2|-c3|-f|-p|-s|-u] [+m[n]] [-T type]
tabs [-T type] [+[n]] n1[,n2,...]
DESCRIPTION
The tabs utility displays a series of characters that first clears the hardware terminal tab settings and then initializes the tab stops at
the specified positions and optionally adjusts the margin.
The phrase "tab-stop position N" means that, from the start of a line of output, tabbing to position N shall cause the next character output
to be in the (N+1)th column on that line.
The following options are supported:
-n Specifies repetitive tab stops separated by a uniform number of columns, n, where n is a single digit decimal number. The
default usage of tabs with no arguments is equivalent to tabs -8. When -0 is used, the tab stops are cleared and no new ones
set.
-a Assembler, applicable to some mainframes. Equivalent to tabs 1,10,16,36,72 .
-a2 Assembler, applicable to some mainframes. Equivalent to tabs 1,10,16,40,72
-c COBOL, normal format. Equivalent to tabs 1,8,12,16,20,55
-c2 COBOL, compact format (columns 1 to 6 omitted). Equivalent to tabs 1,6,10,14,49
-c3 COBOL, compact format (columns 1 to 6 omitted), with more tabs than -c2. Equivalent to tabs
1,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,67
-f FORTRAN. Equivalent to tabs 1,7,11,15,19,23
-p PL/1. Equivalent to tabs 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61
-s SNOBOL. Equivalent to tabs 1,10,55
-T type Indicates the type of terminal.
-u Assembler, applicable to some mainframes. Equivalent to tabs 1,12,20,44
EXIT STATUS
The tabs utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT
The COLUMNS and TERM environment variables affect the execution of tabs as described in environ(7).
The -T option overrides TERM. If neither TERM nor the -T option are present, tabs will fail.
SEE ALSO
expand(1), stty(1), tput(1), unexpand(1), termcap(5)
STANDARDS
The tabs utility conforms to IEEE Std 1003.1 (``POSIX.1'').
HISTORY
A tabs utility first appeared in PWB UNIX. This implementation was introduced in NetBSD 6.0.
AUTHORS
Roy Marples <roy@NetBSD.org>
BUGS
The current termcap(5) database does not define the set left soft margin 'ML' capability for any terminals.
BSD
December 9, 2008 BSD