10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks -
I have a need to find a string occurrences in a list of *.txt files.
My code is as follows:
find . -name "*txt" -exec cat {} + | grep -ic " 0"
I was wondering a few things.
1. Is that an acceptable method to achieve my goal?
A. It works as expected but just curious... (13 Replies)
Discussion started by: SIMMS7400
13 Replies
2. Shell Programming and Scripting
:b:
Hi Folks,
I have a requirement to find the number of consecutive occurences based on month. Here is the below sample of my requirement.
I have say four columns
CARUSERNAME BRAND_CODE MONTH YEAR
Below is sample Data
John|C|JAN|2013
Tim|C|FEB|2013
Tom|C|Mar|2013
Ron|C|Apr|2013... (4 Replies)
Discussion started by: dinesh1985
4 Replies
3. Shell Programming and Scripting
Hi,
i am in need of an awk script to accomplish the following:
Input table looks like:
Student1 arts
Student2 science
Student3 arts
Student4 science
Student5 science
Student6 science
Student7 science
Student8 science
Student9 science
Student10 science
Student11 science... (8 Replies)
Discussion started by: saint2006
8 Replies
4. AIX
Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold
I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies
5. AIX
Is there a 'top' command equivalent in AIX 4.2 ?
I already checked and I do not see the following ones anywhere:
top
nmon
topas (1 Reply)
Discussion started by: Browser_ice
1 Replies
6. Shell Programming and Scripting
I have enclosed the script. I am able to find the files that contain my search string but when I try to count the occurences within the file I get zero always. Any help on this.
#!/usr/bin/perl
my $find = $ARGV;
my $replace = $ARGV;
my $glob = $ARGV;
@filelist = <*$glob>;
# process each... (22 Replies)
Discussion started by: TimHortons
22 Replies
7. Shell Programming and Scripting
hi I hace a string
"abc,def,ghi,abc,def ,ghi,abc,def,ghi,abc,def ,ghi,abc"
i replaced commas with spaces, now i want to calculate nof occurences of "abc" word.
thanks in advance
Satya (6 Replies)
Discussion started by: Satyak
6 Replies
8. Shell Programming and Scripting
I have a string like this.
$str="The astrocyte profile might contribute to the identification of possible therapies in profiles profiling and profiled als.";
Lets consider for example:
a)If user enters the term profile* it should highlight profile,profiles only.
b)If user enters the... (3 Replies)
Discussion started by: vanitham
3 Replies
9. Web Development
Hi,
For example lets consider i have word like this:cell
I have some text that is stored in table.
These are few sentences.
TRAP also regulates translation of trpE by promoting formation of an cell.
In addition initiation of pabA, trpP and ycbK by directly blocking cells.
I... (0 Replies)
Discussion started by: vanitham
0 Replies
10. UNIX for Dummies Questions & Answers
how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number.
top -n 20
i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies