Hi,
I want to print 130 fileds using formatted printing in AWK. It looks like
awk '{printf ("%7.2f%7.2f...%7.2\n",$1,$2,...,$130)}' inflie>oufile
But it gives me an error:
Word too long!
Can you please help me with this? Is there another way to do this? (1 Reply)
All,
I am attempting to print the tenth ($COPY2) varaibales into one file.
But i am finding that all variables are being outputted except for $10.
Can someone help!!!!
Code Below
----------
echo $SERVER $IMAGE $IMAGEDAY $IMAGEMONTH $IMAGEYEAR $COPY1 $EXPIREDAY $EXPIREMONTH... (1 Reply)
Hi everyone,
Ok here's the scenario.
I have a control file like this.
component1,file1,file2,file3,file4,file5
component2,file1,file2,file3,file4,file5I want to do a while loop here to read all files for each component.
file_count=2
while ]
do
file_name=`cat list.txt | grep... (2 Replies)
HI,
This is the code I am using:
awk -v aaa="connect" 'BEGIN {IGNORECASE} /aaa/,/!/ {print NR}' bb
This does not throw any error but it does not work. Pls help
Thanks. (4 Replies)
Hi
I am having a file like this
##############################
j=1
while ]
do
temp_5=MODULE$j
awk '
$1 ~ /'${!temp_5}'/ {
do something }1' file1 > file2
((j = j +1 ))
done ###################
Setting the variables like this (8 Replies)
Heyas
Me try to print only the value of a (specific) variable assignment from a file.
What i get (1):
:) tui $ bin/tui-conf-get ~/.tui_rc TUI_THEME
dot-blue
""
"$TUI_DIR_INSTALL_ROOT/usr"
"$TUI_DIR_INSTALL_ROOT/etc/tui"
"$TUI_PREFIX/share/doc/tui"
"$TUI_PREFIX/share/tui"... (2 Replies)
Hi,
If i were to do this an print out the file, it will show as it is in the command
$ awk '/Privilege Use/ {P=0} /Object Access/ {P=1} P' AdvancedAudit.txt
Object Access
File System No Auditing
Registry No Auditing
Kernel... (1 Reply)
Hi, so i have this command:
ps axo cmd=,user=,%cpu=,priority= --sort=-%cpu | awk '{print $2}'
And i want to print the second column, that is user. The thing is that i dont know why this is my output:
root
Eskizoi+
Eskizoi+
axo
{print
I dont know why axo and {print are there, the... (20 Replies)
i have a unique scenario id like help with.
im currently running this command and it does what i want:
printf '%s\n' "${RawContent}" | awk '/## Beginning Stages ##/,/## Ending Stages ##/' | awk '!/^#.*\!|^#\!|DefaultError/'
Can this be shortened? I'm looking for something portable as... (8 Replies)
Discussion started by: SkySmart
8 Replies
LEARN ABOUT BSD
disktab
DISKTAB(5) File Formats Manual DISKTAB(5)NAME
disktab - disk description file
SYNOPSIS
#include <disktab.h>
DESCRIPTION
Disktab is a simple date base which describes disk geometries and disk partition characteristics. The format is patterned after the term-
cap(5) terminal data base. Entries in disktab consist of a number of `:' separated fields. The first entry for each disk gives the names
which are known for the disk, separated by `|' characters. The last name given should be a long name fully identifying the disk.
The following list indicates the normal values stored for each disk entry.
Name Type Description
ns num Number of sectors per track
nt num Number of tracks per cylinder
nc num Total number of cylinders on the disk
b0 str Filename of block zero primary bootstrap for device
ba num Block size for partition `a' (bytes)
bd num Block size for partition `d' (bytes)
be num Block size for partition `e' (bytes)
bf num Block size for partition `f' (bytes)
bg num Block size for partition `g' (bytes)
bh num Block size for partition `h' (bytes)
fa num Fragment size for partition `a' (bytes)
fd num Fragment size for partition `d' (bytes)
fe num Fragment size for partition `e' (bytes)
ff num Fragment size for partition `f' (bytes)
fg num Fragment size for partition `g' (bytes)
fh num Fragment size for partition `h' (bytes)
pa num Size of partition `a' in sectors
pb num Size of partition `b' in sectors
pc num Size of partition `c' in sectors
pd num Size of partition `d' in sectors
pe num Size of partition `e' in sectors
pf num Size of partition `f' in sectors
pg num Size of partition `g' in sectors
ph num Size of partition `h' in sectors
se num Sector size in bytes (default 512)
sf bool supports bad144-style bad sector forwarding
so bool partition offsets in sectors
ty str Type of disk (e.g. removable, winchester)
Disktab entries may be automatically generated with the diskpart program.
FILES
/etc/disktab
SEE ALSO newfs(8), diskpart(8), getdiskbyname(3)BUGS
This file shouldn't exist, the information should be stored on each disk pack.
4.2 Berkeley Distribution May 17, 1986 DISKTAB(5)