10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi, I would like to count the number of ALA occurences without having them to be repeated. In the script I have written now it has 40 repetitions of ALA but it has to be 8. ALA is chosen as one of the 20 values it can have when the script asks for the input of AAA, which for this example is chosen... (7 Replies)
Discussion started by: Aurimas
7 Replies
2. 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
3. Shell Programming and Scripting
Hi All,
I am looking for a perl/awk/sed command to auto-increment the numbers line in file, P1.tcl:
run_build_model sparc_ifu_dec
run_drc
set_faults -model path_delay -atpg_effectiveness -fault_coverage
add_delay_paths P1
set_atpg -abort_limit 1000
run_atpg -ndetects 1000
I would like... (6 Replies)
Discussion started by: jypark22
6 Replies
4. Shell Programming and Scripting
hi all, I'm new there, I'm just playing with perl and lwp and I just successfully created a script for log in to a web site with post. I have a response but I would like to have something like this:
I have in my response lines like:
<div class="sender">mimi020</div>
<some html code.....>... (3 Replies)
Discussion started by: vogueestylee
3 Replies
5. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
6. UNIX for Dummies Questions & Answers
Hello world,
Can anybody tell me how to count how many times does a word repeat in a file? There have been many threads on this but they all are heavy loads of Scripting for a starter like me. :D
So, I sat down today and after some hours of reading man pages, I found a simple one-line... (18 Replies)
Discussion started by: satish51392111
18 Replies
7. UNIX for Dummies Questions & Answers
I want to count the number of occurences of say "200" in a file but that file also contains various stuff including dtaes like 2007 or smtg like 200.1 so count i am getting by doing grep -c "word" file is wrong
Please help!!!!! (8 Replies)
Discussion started by: shikhakaul
8 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I want to count the occurences of a specific word in a .txt file in bash shell.
Can somebody help me pleaze??
Thanks!!! (2 Replies)
Discussion started by: mskart
2 Replies
9. 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
10. Shell Programming and Scripting
Hi all,
I have a file with lines written somewhat like this.
aaaa
ccc
aa
linux
browse = no
xssxw
cdcedc
dcsdcd
csdw
police
dwed
dwd
browse = no
cdecec (2 Replies)
Discussion started by: vikas027
2 Replies
STYLE(1) General Commands Manual STYLE(1)
NAME
style - analyze surface characteristics of a document
SYNOPSIS
style [ -ml ] [ -mm ] [ -a ] [ -e ] [ -l num ] [ -r num ] [ -p ] [ -P ] file ...
DESCRIPTION
Style analyzes the surface characteristics of the writing style of a document. It reports on readability, sentence length and structure,
word length and usage, verb type, and sentence openers. Because style runs deroff before looking at the text, formatting header files
should be included as part of the input. The default macro package -ms may be overridden with the flag -mm. The flag -ml, which causes
deroff to skip lists, should be used if the document contains many lists of non-sentences. The other options are used to locate sentences
with certain characteristics.
-a print all sentences with their length and readability index.
-e print all sentences that begin with an expletive.
-p print all sentences that contain a passive verb.
-lnum print all sentences longer than num.
-rnum print all sentences whose readability index is greater than num.
-P print parts of speech of the words in the document.
SEE ALSO
deroff(1), diction(1)
BUGS
Use of non-standard formatting macros may cause incorrect sentence breaks.
7th Edition April 29, 1985 STYLE(1)