so i have been trying to learn how to manipulate text on my own and have gotten stumped...
let's say i have a text file that says (highly simplified):
people ordinary
How would swap the order of the words..
I know i need to use sed and some kind of back reference but cannot make it... (2 Replies)
I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last..
eg.
Sample file
1
h
a
f
8
6
After sort should look like
6
8
f
a
h
1 (11 Replies)
I need to sort the particular column only in reverse order how i can give it..
if i give the -r option the whole file is getting sorted in reverse order.
1st 2nd col 3rd
C col 4th col 5th col
-------------------------------------------
C... (7 Replies)
command/script(apart from awk) to print the fields in reverse order
that is last field has to come first and so on and first field has to go last
Input
store-id date sale
.............
.............
... (3 Replies)
Hi,
I want to print the item in reverse order such that the output would look like
00 50 50 23 40 22 02 96
Below is the input:
00 05 05 32 04 22 20 69
Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Hello,
I have a large database of words and would like them sorted in reverse order i.e. from the end up.
An example will make this clear:
I have tried to write a program in Perl which basically takes the string from the end and tries to sort from that end but it does not seem... (5 Replies)
I have a unix script that outputs a summary file to the mac desktop.
The file is called summary.txt
I am trying to configure such so that the summary.txt file lists the content contained within such in reverse sort order.
I have used sort -r but it does not seem to work.
I would be... (8 Replies)
Discussion started by: Braveheart
8 Replies
LEARN ABOUT DEBIAN
dump-acct
DUMP-ACCT(8) GNU Accounting Utilities DUMP-ACCT(8)NAME
dump-acct - print an acct file in human-readable format.
SYNOPSIS
dump-acct [-r|--reverse] [-R|--raw] [--format] version] [--byteswap] [--ahz] hertz] [-n|--num recs] [-h|--help] [ files]
DESCRIPTION
dump-acct filename prints a list of all executed processes. This list is written by the kernel which must be compiled with BSD process
accounting enabled (Debian kernel image have it already enabled). It must be started with accton(5). Note that on Debian systems, this is
ensured via the init script /etc/init.d/acct.
All fields are separated by vertical line. Fields are: command, version, user time, system time, effective time, uid, gid, memory, io, pid,
ppid, time. User, system and effective times are ticks per second. One tick is usually 1/50 of a second. The time field shows the start
time of the process.
The --raw switch, as well as the --format, --byteswap, and --ahz can be used as a handy format converter.
OPTIONS -h, --help
Prints the usage string and default locations of system files to standard output and exits.
-n, --num recs
Number of lines to print.
-r, --reverse
Start printing from last records.
-R, --raw
Print raw records, not human-readable.
--format version
Use specified format version to display records.
--byteswap
Swap bytes endianness when reading records.
--ahz Use specified units of time to display data from other kernel versions and architectures.
FILES
acct The system wide process accounting file. See acct(5) for further details.
SEE ALSO acct(5), ac(8).
AUTHOR
The GNU accounting utilities were written by Noel Cragg <noel@gnu.ai.mit.edu>.
This manual page was written by Ognyan Kulev <ogi@fmi.uni-sofia.bg> and updated by Daniel Baumann <daniel@debian.org> and Mathieu Trudel
<mathieu.tl@gmail.com> for the Debian project (but may be used by others).
6.4pre1 2006-04-22 DUMP-ACCT(8)