I just need to get the server back working again! The old grep command I used at least worked then....
---------- Post updated at 07:41 AM ---------- Previous update was at 07:36 AM ----------
Windows NT
---------- Post updated at 07:44 AM ---------- Previous update was at 07:41 AM ----------
I ran the find part of the statement & it work. Then I ran the grep part & it still works. But it won't work together as it use to run! I don't understand!
---------- Post updated at 07:45 AM ---------- Previous update was at 07:44 AM ----------
It keeps coming back with no data. But when I do an
They're there! I'm confused! Help! lol Please?
We don't know what your server problems are. If it stopped working, that will definitely not be due to those commands.
Or is it just your terminal session that hangs? Try <CTRL>C or <CTRL>D or kill it fromthe task manager.
Please explain in detail and plain English what your problems are, also supplying input and desired output samples.
I've only got today to get it running like it use too!
---------- Post updated at 08:01 AM ---------- Previous update was at 07:50 AM ----------
Ok when I changed my find . -name "*.xml" -exec grep -l "Status" {} \; to
I got this error message.
And now ever since then I haven't been able to run my script or the earlier find command from the command line. I don't know what to do...
---------- Post updated at 08:05 AM ---------- Previous update was at 08:01 AM ----------
I tried
Because I thought maybe it was pointing at the wrong file for the find command. But It's pointing at the mks tool kit...I've triple checked my syntax over. And that's not it. Plus the script use to run. Yeah it took a while but it ran. Now it runs but can't find any of the files. I did an
&
right after the script came back with no data. And the files are right there.
---------- Post updated at 08:19 AM ---------- Previous update was at 08:05 AM ----------
Somebody please help me? I have learned a valuable lesson from all of this! Learn my commands before using them!
---------- Post updated at 08:37 AM ---------- Previous update was at 08:19 AM ----------
Well, I've restarted the server & still the same problem!
OK, calm down.
Does the modification date of your .xml files indicate they've been overwritten lately?
Use an editor to open one of the .xml file and look if there's "status" in one of the eight first lines. Then use grep status on that .xml file. Report back.
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Hi,
file1.txt
AAA
BBB
CCC
DDD
file2.txt
abc|AAA|AAAabcbcs|fnwufnq
bca|nwruqf|AAA|fwfwwefwef
fmimwe|BBB|fnqwufw|wufbqw
wcdbi|CCC|wefnwin|wfwwf
DDD|wabvfav|wqef|fwbwqfwfe
i need the count of rows of file1.txt present in the file2.txt
required output:
AAA 2 (10 Replies)
Hi,
I have to grep string from 20 - 30 files each carries 200 - 300 MB size and append to the
file. How to speed the
grepping time.
cat catalina.out_2012_01_01 | grep "xxxxx" >> backup.txt
PLZ, Suggest me,
Regards,
Nanthagopal A (5 Replies)
hi
i'm greping the files with sepefic keyword, where the file is of too big. Assume there are 10 days log file each of more than 200mb. i've to grep all those files with a specific keywords.
for example,
1. i'll grep for error message
2. after the i'll do one more grep for keyword... (4 Replies)
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Hello
Ive written 2 programs in shell and I need to compare their speed (Compile) against one another.
what methods could I go about doing this?
Is there a feature in shell do accommodate this? (2 Replies)
I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
Hello,
I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info:
RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!!
Regards :)... (0 Replies)
I grepped for a string from a directory of very large files. This took quite a long time (not a problem). When I grepped for a different string from the same files immediately after, the output was MUCH quicker.
My question is, does anybody know why the second grep was so much quicker than the... (1 Reply)