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
fspec(4) Kernel Interfaces Manual fspec(4)
NAME
fspec - format specification in text files
DESCRIPTION
It is sometimes convenient to maintain text files on the HP-UX system with non-standard tabs, (meaning tabs that are not set at every
eighth column). Generally, such files must be converted to a standard format - frequently by replacing all tabs with the appropriate num-
ber of spaces - before they can be processed by HP-UX system commands. A format specification occurring in the first line of a text file
specifies how tabs are to be expanded in the remainder of the file.
A format specification consists of a sequence of parameters separated by blanks and surrounded by the brackets and Each parameter consists
of a keyletter, possibly followed immediately by a value. The following parameters are recognized:
The parameter specifies tab settings for the file. The value of tabs must be one of the following:
1. A list of column numbers separated by commas, indicating tabs set at the specified columns;
2. A followed immediately by an integer n, indicating tabs at intervals of n columns;
3. A followed by the name of a ``canned'' tab specification.
Standard tabs are specified by or equivalently, etc. Recognized canned tabs are defined by the command (see
tabs(1)).
The parameter specifies a maximum line size. The value of size must be an integer. Size checking is performed after
tabs have been expanded, but before the margin is inserted at the beginning of the line.
The parameter specifies a number of spaces to be inserted at the beginning of each line. The value of margin must be an
integer.
The parameter takes no value. Its presence indicates that the line containing the format specification is to be deleted
from the converted file.
The parameter takes no value. Its presence indicates that the current format is to prevail only until another format
specification is encountered in the file.
Default values (assumed for parameters not supplied) are and If the parameter is not specified, no size checking is performed. If the
first line of a file does not contain a format specification, the above defaults are assumed for the entire file. The following is an
example of a line containing a format specification:
If a format specification can be disguised as a comment, it is not necessary to code the parameter.
Several HP-UX system commands correctly interpret the format specification for a file. Among them is which can be used to convert files to
a standard format acceptable to other HP-UX system commands.
SEE ALSO
ed(1), newform(1), tabs(1).
fspec(4)