is it possible to execute multiple search with grep???
grep criteria1 criteria2 file
something like this...
I know other way:
grep pattern1 file-name1 > results-file
grep pattern2 file-name1 >> results-file
cat results-file
but can it be done with one grep???? (5 Replies)
Hi frnds
i want to desplay file names that should be word1 and word2
ex :
i have 10 *.log files
5 files having word1 and word2
5 files having only word1,
i have used below command
egrep -l 'word1|word2' *.log
its giving all 10 files, but i want to display only 5... (20 Replies)
Hi All,
I am trying to search multiple lines in file using grep /sed.And i cant seem to make it work.
The File looks like this
5012001,100,AUTOBATCH,FEE,DAILYFEE,0,0
4241 SERVICE DENIED
5012002,100,AUTOBATCH,FEE,DAILYFEE,0,0
4241 SERVICE DENIED... (6 Replies)
Hello All,
I have a file which is having below type of data,
Jul 19 2011 | 123456
Jul 19 2011 | 123456
Jul 20 2011 | 123456
Jul 20 2011 | 123456
Here I wanted to grep for date pattern as below, so that it should only grep "Jul 20" OR "Jul ... (9 Replies)
I have a file that is a sort library in the format:
##def title1
content1
stuff1
content2
stuff2
##enddef
##def title2
etc..
I want to grep def and content and pull some trailing context from content
so the result would look something like: (1 Reply)
Hi,
Whether we can search multiple strings using or in grep -F
In Generally,
grep -F "string1" "filename.txt"
How to search for multiple string using grep -F as we using grep
grep "string1\|string2" "filename.txt"
Regards,
Nanthagopal A (10 Replies)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
How to search multiple word using grep command
for example i want to reserch
ANJ001
AA
Using ridiculous font, size, and color changes instead of normal space separated text and CODE tags obfuscates what you are trying to do and makes it difficult for volunteers who may want to help you solve... (1 Reply)
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
LEARN ABOUT CENTOS
ieee80211_sta_set_buffered
IEEE80211_STA_SET_BU(9) Advanced driver interface IEEE80211_STA_SET_BU(9)NAME
ieee80211_sta_set_buffered - inform mac80211 about driver-buffered frames
SYNOPSIS
void ieee80211_sta_set_buffered(struct ieee80211_sta * sta, u8 tid, bool buffered);
ARGUMENTS
sta
struct ieee80211_sta pointer for the sleeping station
tid
the TID that has buffered frames
buffered
indicates whether or not frames are buffered for this TID
DESCRIPTION
If a driver buffers frames for a powersave station instead of passing them back to mac80211 for retransmission, the station may still need
to be told that there are buffered frames via the TIM bit.
This function informs mac80211 whether or not there are frames that are buffered in the driver for a given TID; mac80211 can then use this
data to set the TIM bit (NOTE: This may call back into the driver's set_tim call! Beware of the locking!)
If all frames are released to the station (due to PS-poll or uAPSD) then the driver needs to inform mac80211 that there no longer are
frames buffered. However, when the station wakes up mac80211 assumes that all buffered frames will be transmitted and clears this data,
drivers need to make sure they inform mac80211 about all buffered frames on the sleep transition (sta_notify with STA_NOTIFY_SLEEP).
Note that technically mac80211 only needs to know this per AC, not per TID, but since driver buffering will inevitably happen per TID
(since it is related to aggregation) it is easier to make mac80211 map the TID to the AC as required instead of keeping track in all
drivers that use this API.
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
Author.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 IEEE80211_STA_SET_BU(9)