Hi all,
I have file with following content
...........................
..........TEST..........
..........TEST..........
.....................
.....TEST..........
.....................
.....................
.....TEST..........
I want to replace nth "TEST" with "OK" using... (4 Replies)
I have a big database log file which keepsgrowing daily. OS is HP UX. Here is a small part of it:
Tue Jan 27 04:03:22 2009
: add session begin for mfgeb on /dev/pts/th.
: Converting relative path to absolute path.
: add session end.
Tue Jan 27 04:03:29... (6 Replies)
I have this file (below) and need to get out specific data that appears after OSE1_1.FIX, but before OSE1_2.FIX.
Specifically I need to get all of the data after "ROW80_20:", "ROW80_21:", "ROW80_22:" & "ROW80_23:" then I need to do the same for data the appears after OSE1_2.FIX, but before... (2 Replies)
How do I use awk to find the NR of first instance of a specific string after eg NR==10?
I need to find the first instance of the word "class" after a specific NR. (2 Replies)
I need to be able to search for a beginning line header, then use grep or something else to get the very next instance of a particular string, which will ALWAYS be in "Line5". What I have is some data that appears like this:
Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line1
Line2
...... (4 Replies)
Hey guys,
I'm having a bit of trouble getting this to work using either sed or grep. It's possible awk might be the ticket I need as well, but my regulat expression skills aren't quite up to the task for doing this.
I'm looking to grep for the string ERROR from the following log up until any... (6 Replies)
I want to grep some information out of the dmidecode but when I type
dmidecode | grep Memory
I get several instances of the word. Is there a way I can just choose which instance I want to display? (8 Replies)
Hi,
I want to get the only application name from the server.
Ex:
if i give $ ps -ef | grep bw.
It will show all BW process with entire path. It will little confuse to list out the process. Can anyone have syntax to get only the instance name. I need this for be, hawk,ems also.
Please... (2 Replies)
Hi.
In thread https://www.unix.com/shell-programming-and-scripting/267833-grouping-counting.html rovf and I had a mini-discussion on grep and awk.
Here is a demo script that compares the awk and grep approaches for this single problem:
#!/usr/bin/env bash
# @(#) s2 Demonstrate group... (1 Reply)
Discussion started by: drl
1 Replies
LEARN ABOUT OPENSOLARIS
ng_fec
NG_FEC(4) BSD Kernel Interfaces Manual NG_FEC(4)NAME
ng_fec -- netgraph Fast EtherChannel node
SYNOPSIS
#include <netgraph/ng_fec.h>
DESCRIPTION
The fec node implements Ethernet port trunking using the ``Cisco Fast EtherChannel'' protocol. Upon creation, a fec node creates a network
interface associated with it. Interfaces are named ``fec0'', ``fec1'', etc. New nodes take the first available unit.
HOOKS
The fec node accepts any hooks. However it does not use them. Under normal operation, a fec node should not have any hooks.
CONTROL MESSAGES
Interface membership in the FEC group is configured with the following control messages:
NGM_FEC_ADD_IFACE (``add_iface'')
Attach interface to the FEC group. The target interface name is passed as a string argument.
NGM_FEC_DEL_IFACE (``del_iface'')
Remove interface from the trunk. The target interface name is passed as a string argument.
The following control messages define the forwarding method for a node:
NGM_FEC_SET_MODE_MAC (``set_mode_mac'')
Forwarding decisions will be based on the link-layer MAC address of the destination.
NGM_FEC_SET_MODE_INET (``set_mode_inet'')
Forwarding decisions will be based on the IP address of the destination.
SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message.
EXAMPLES
The following example script creates an fec node, attaches four Ethernet interfaces to it and sets the forwarding method to be IP-address
based:
/usr/sbin/ngctl -f- << SEQ
mkpeer fec dummy fec
msg fec0: add_iface "dc0"
msg fec0: add_iface "dc1"
msg fec0: add_iface "dc2"
msg fec0: add_iface "dc3"
msg fec0: set_mode_inet
SEQ
SEE ALSO netgraph(4)HISTORY
The fec node type was implemented in FreeBSD 5.0.
AUTHORS
The fec node was written by Bill Paul <wpaul@FreeBSD.org>. This manual page was written by Gleb Smirnoff <glebius@FreeBSD.org>.
BSD July 22, 2004 BSD