09-28-2011
hi,
How did i miss grep -v
i will test all the solutions to begin with.
Thanks to everyone.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i need to delete a lines after searching a particular string but this searching should only happen after the 4th line..
basically imagine a file like this
From: abcd.yahoo.com
To: cdeb.yahoo.com
Subject: hi all
sdfsd
sadasd
asdasd
dfsdf
From: abcd.yahoo.com
To:... (3 Replies)
Discussion started by: depakjan
3 Replies
2. Shell Programming and Scripting
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies
3. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies
4. Shell Programming and Scripting
i have a file1 with many lines. i have a script that will let me input a string. for example, APPLE. what i need to do is to copy all lines from file1 where i can find APPLE or any string that i specify and paste in on file 2
thanks in advance! (4 Replies)
Discussion started by: engr.jay
4 Replies
5. UNIX for Dummies Questions & Answers
I have code that accepts input from a user, and when the user hits enter it is supposed to delete that whole line from the file.
echo "Which record? "
read record
sed '/$record/d' file
However, it does not delete it. Any help? (1 Reply)
Discussion started by: itech4814
1 Replies
6. Shell Programming and Scripting
I want to write the syntax so does not count line with no space.
So currerntly it is showing lines as 5, but i want to show 4.
# cat /tmp/mediacheck | sort -u | grep -vi " " | awk '{print $1}' | wc -l
BA7552
BAA002
BAA003
BAA004 (6 Replies)
Discussion started by: Junes
6 Replies
7. Shell Programming and Scripting
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
1 Replies
8. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
9. UNIX for Dummies Questions & Answers
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies
10. Shell Programming and Scripting
Shell : bash
OS : RHEL 6.8
I have a file like below.
$ cat pattern.txt
hello
txt1
txt2
txt3
some other text
txt4
I want to remove all lines in this file except the ones starting with txt . How can I do this ? (4 Replies)
Discussion started by: omega3
4 Replies
LEARN ABOUT DEBIAN
ieee80211_bmiss
IEEE80211_BMISS(9) BSD Kernel Developer's Manual IEEE80211_BMISS(9)
NAME
ieee80211_bmiss -- 802.11 beacon miss support
SYNOPSIS
#include <net80211/ieee80211_var.h>
void
ieee80211_beacon_miss(struct ieee80211com *);
DESCRIPTION
The net80211 software layer provides a support framework for drivers that includes handling beacon miss events in station mode. Drivers can
dispatch beacon miss events that are recognized in hardware or net80211 can detect beacon miss if the driver dispatches received beacon
frames through the normal receive path. Software beacon miss support is especially useful when multiple vaps are operating and any hardware
beacon miss support is not available (e.g. operating as an access point together with one or more station mode vaps).
Drivers should dispatch beacon miss events recognized in the driver with ieee80211_beacon_miss(). This causes some number of ProbeRequest
frames to be sent to the access point to check if the association is still alive. If no response is received and roaming mode is set to
IEEE80211_ROAMING_AUTO then net80211 will try to re-associate and if that fails trigger a scan to look for the access point or another suit-
able AP. When the net80211 state machine is being operated manually, e.g. by wpa_supplicant(8), then applications are notified of the state
change and are responsible for handling the work of scanning for a new access point. The number of beacon miss events (without a ProbeRe-
sponse) is user settable with the IEEE80211_IOC_BMISSTHRESHOLD request.
Software beacon miss detection is enabled per-vap by setting the IEEE80211_FEXT_SWBMISS flag. Typically this is done when a vap is setup
when the IEEE80211_CLONE_NOBEACONS option is supplied to the clone operation. But drivers may also force this when they know they need help
detecting beacon miss. When beacon miss is detected in software the event is dispatched without driver involvement. Note that software bea-
con miss handling is not limited to station mode; it can be used in any operating mode where beacons from a peer station are received.
SEE ALSO
wpa_supplicant(8), ieee80211(9), ieee80211_vap(9)
BSD
August 4, 2009 BSD