In the secondary output:
where do these numbers come from?
If you're counting the number of times a digit appears in the input, 0 occurs 13 times (not 12 times) in your sample input. If you're counting the number of times a value appears in your sample input, 0 (or 00) does not appear at all???
All of your input values are two digit strings. Are we supposed to treat 01 and 1 as the same value or as distinct values? If they are the same, is 010 to be treated as an octal value (decimal 8) or as a decimal value (10)?
Hi Guys...
I am newbie to awk and would like a solution to probably one of the simple practical questions.
I have a test file that goes as:
1,2,3,4,5,6
7,2,3,8,7,6
9,3,5,6,7,3
8,3,1,1,1,1
4,4,2,2,2,2
I would like to know how AWK can get me the distinct values say for eg: on col2... (22 Replies)
Hello,
I have a 1.6 GB file that I would like to modify by matching some ids in col1 with the ids in col 1 of file2.txt and save the results into a 3rd file.
For example:
File 1 has 1411 rows, I ignore how many columns it has (thousands)
File 2 has 311 rows, 1 column
Would like to... (7 Replies)
Hello everyone,
I am writing a script to process data from the ATP world tour.
I have a file which contains:
t=540 y=2011 r=1 p=N409
t=540 y=2011 r=2 p=N409
t=540 y=2011 r=3 p=N409
t=540 y=2011 r=4 p=N409
t=520 y=2011 r=1 p=N409
t=520 y=2011 r=2 p=N409
t=520 y=2011 r=3 p=N409
The... (4 Replies)
I am a new user of Unix/Linux, so this question might be a bit simple!
I am trying to join two (very large) files that both have different # of cols and rows in each file.
I want to keep 'all' rows and 'all' cols from both files in the joint file, and the primary key variables are in the rows.... (1 Reply)
Hi,
Please help with this.
I have several excel files (with and .xlsx format) with 10-15 columns each.
They all have the same type of data but the columns are not ordered in the same way.
Here is a 3 column example. What I want to do add the alphabet
from column 2 to column 3, provided... (9 Replies)
Hi. How can I read row number from one file and print that corresponding record present at that row in another file.
eg
file1
1
3
5
7
9
file2
11111
22222
33333
44444
55555
66666
77777
88888
99999 (3 Replies)
I need help with extract/print lines till stop pattern. This needs to happen after every 3rd occurrence of start pattern and continue till end of file. Consider below is an example of the log file. my start pattern will be every 3rd occurrence of ERROR_FILE_NOT_FOUND and stop pattern will be... (5 Replies)
Hi Gurus,
I have requirement to identify the records based on one column value.
the sample file as below:
ID AMT, AMT1
100,10, 2
100,20, 3
200,30, 0
200, 40, 0
300, 20, 2
300, 50, 2
400, 20, 1
400, 60, 0
for each ID, there 2 records, if any one record amt1 is 0, the in 4th col add... (5 Replies)
Discussion started by: ken6503
5 Replies
LEARN ABOUT FREEBSD
od
OD(1) BSD General Commands Manual OD(1)NAME
od -- octal, decimal, hex, ASCII dump
SYNOPSIS
od [-aBbcDdeFfHhIiLlOosvXx] [-A base] [-j skip] [-N length] [-t type] [[+]offset[.][Bb]] [file ...]
DESCRIPTION
The od utility is a filter which displays the specified files, or standard input if no files are specified, in a user specified format.
The options are as follows:
-A base Specify the input address base. The argument base may be one of d, o, x or n, which specify decimal, octal, hexadecimal
addresses or no address, respectively.
-a Output named characters. Equivalent to -t a.
-B, -o Output octal shorts. Equivalent to -t o2.
-b Output octal bytes. Equivalent to -t o1.
-c Output C-style escaped characters. Equivalent to -t c.
-D Output unsigned decimal ints. Equivalent to -t u4.
-d Output unsigned decimal shorts. Equivalent to -t u2.
-e, -F Output double-precision floating point numbers. Equivalent to -t fD.
-f Output single-precision floating point numbers. Equivalent to -t fF.
-H, -X Output hexadecimal ints. Equivalent to -t x4.
-h, -x Output hexadecimal shorts. Equivalent to -t x2.
-I, -L, -l Output signed decimal longs. Equivalent to -t dL.
-i Output signed decimal ints. Equivalent to -t dI.
-j skip Skip skip bytes of the combined input before dumping. The number may be followed by one of b, k or m which specify the units of
the number as blocks (512 bytes), kilobytes and megabytes, respectively.
-N length Dump at most length bytes of input.
-O Output octal ints. Equivalent to -t o4.
-s Output signed decimal shorts. Equivalent to -t d2.
-t type Specify the output format. The type argument is a string containing one or more of the following kinds of type specifiers:
a Named characters (ASCII). Control characters are displayed using the following names:
000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ
006 ACK 007 BEL 008 BS 009 HT 00A NL 00B VT
00C FF 00D CR 00E SO 00F SI 010 DLE 011 DC1
012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB
018 CAN 019 EM 01A SUB 01B ESC 01C FS 01D GS
01E RS 01F US 020 SP 07F DEL
c Characters in the default character set. Non-printing characters are represented as 3-digit octal character codes,
except the following characters, which are represented as C escapes:
NUL
alert a
backspace
newline
carriage-return
tab
vertical tab v
Multi-byte characters are displayed in the area corresponding to the first byte of the character. The remaining bytes
are shown as '**'.
[d|o|u|x][C|S|I|L|n]
Signed decimal (d), octal (o), unsigned decimal (u) or hexadecimal (x). Followed by an optional size specifier, which
may be either C (char), S (short), I (int), L (long), or a byte count as a decimal integer.
f[F|D|L|n]
Floating-point number. Followed by an optional size specifier, which may be either F (float), D (double) or L (long
double).
-v Write all input data, instead of replacing lines of duplicate values with a '*'.
Multiple options that specify output format may be used; the output will contain one line for each format.
If no output format is specified, -t oS is assumed.
ENVIRONMENT
The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of od as described in environ(7).
EXIT STATUS
The od utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
The traditional -s option to extract string constants is not supported; consider using strings(1) instead.
SEE ALSO hexdump(1), strings(1)STANDARDS
The od utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
An od command appeared in Version 1 AT&T UNIX.
BSD December 22, 2011 BSD