Hello,
I have a file that has data like this:
one two three four
five
six seven
eight nine ten
Is there a quick way using sed of nawk to put each word on it's own line?
Thanks. (2 Replies)
Hey All,
I need to reorganize a file's text. Here is the source:
host John_Doe
filename "config.cfg";
hardware ethernet 98:10:3d:13:8f:98;
fixed-address 10.10.10.29;
}
host Jane_Doe
filename "config.cfg";
hardware ethernet 98:13:11:fd:5a:57;
fixed-address 10.10.5.24;
}
host... (2 Replies)
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Hi,
Just trying to get to grips with sed and awk for some reporting for work and I need some assistance:
I have a file that lists policy names on the first line and then on the second line whether the policy is active or not.
Policy Name: Policy1
Active: yes
Policy... (8 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Experts,
Can you please help how to get the output that are written just below "bad"
calls badcalls nullrecv
439486 54 0
badlen xdrcall dupchecks ... (6 Replies)
Hi,
I'm trying make a variable length file to a fixed length of 4000.
I'm to pad spaces on the right of a record if length is less than 4000 to make the record length 4000.
I'm trying to use the below commands
awk '{printf "%-4000s\n", $0}' inputfile.dat > outputfile.dat
sed -e :a... (12 Replies)
Hello all,
I have surely an easy question - but at the moment I do not see the solution.
All what I want is to add the string "/9201" within a file when a line starts with ":47A:".
This is how a file look like:
Information Tool
:12:Delimiter
:3:Space
:47A:0329
:3:Space After the... (2 Replies)
Discussion started by: API
2 Replies
LEARN ABOUT CENTOS
infadd
INFADD(1) General Commands Manual INFADD(1)NAME
infadd - infinite additions to LDAP server
SYNOPSIS
infadd -s suffix -u bindDN -w password [options]
DESCRIPTION
infadd is used to measure performance of the add operation. It can span multiple threads in order to test the performance under heavy lock-
ing.
OPTIONS -h hostname
hostname (default: localhost)
-p port
port (default: 389)
-t threads
number of threads to spin (default: 1)
-d use TCP no-delay
-q quiet mode (no status updates)
-v verbose mode (give per-thread statistics)
-I num first uid (default: 0)
-l count
limit count; stops when the total count exceeds <count>
-i msec
sample interval in milliseconds (default: 10000)
-R size
generate <size> random names instead of using data files
-z size
add binary blob of average size of <size> bytes
SEE ALSO rsearch(1)AUTHOR
infadd was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
Copyright (C) 2008 Red Hat, Inc.
This manual page was written by Michele Baldessari <michele@pupazzo.org>, for the Debian project (but may be used by others).
This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this
software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.
May 18, 2008 INFADD(1)