hi,
I would like to monitor a log file, which rolls over, everytime a server is restarted.
I would like to grep for a string, and to be more efficient i'd like to grep only newly appended data. so something like a 'tail -f' would do, however, as the log rolls over i think a 'tail -F' is what i need, but this doesn't seem to be available in Solaris.
so any ideas welcome.
Hi All,
I'm stuck with this issue when I try to display the searched string into a compressed file.
More exactly when I run this script
Code:
for f1 in $(find dir1 -type f -print); do gunzip -c $f1 | grep -n "gio" | awk -F":" '{print $1-1 "," $1 "p"}' | xargs -i sed -n {} $f1 ; done
returns
Code:
T Š A1
T £ A
΀y£`Ã
b
Hi,
I have created a shell script for Server Log Automation Process. I have used
find xargs grep command to search the string.
for Example,
Code:
find -name | xargs grep "816995225" > test.txt
.
Here my problem is,
We have lot of records and we want to grep the string 4-5 times.
sendfile(string path)
{
int length;
char buffer[10];
When using find, how do I return the file name and the line number when searching for a string? I manage to return the file name in one command and the line numbers with another one, but I can't seem to combine them.
File names: find . -type f -exec grep -l 'string to search' {} \;
Line numbers: find . -type f -exec grep -n 'string to search' {} \;
Please forgive my ignorance on scripting. I am trying to determine (via a script) if a certain string of characters is present .
Here Is a problem I am facing with awk.
Query --> I want to search for a string in a file and print next 15 lines below the matched string.
1.We do not have GNU grep so cannot use grep -A or grep -B commands.
2. Instead of passing the search pattern as a string to awk.
I'm trying to get HAL to load my touchpad's preferences at startup, but for some unknown reason to me, it isn't.
I've got a an Eee PC 1000 HE with an Elantech Touchpad.
Hello!
I, along with a few others on these forums, have an Acer 5920 laptop, which is equipped with both a Synaptics Touchpad, and a set of touch-sensitive media keys, which are, in fact, a second synaptics touchpad.
Previously, we had been able to use gsynaptics to configure the touchpad behaviour by this: