08-06-2013
You of course have to adapt to your needs, e.g. n==3 or n==2...
10 More Discussions You Might Find Interesting
1. AIX
Lets say I have a file containing string patterns to be looked for inside a file.
I would normaly do :
grep -if MyFilePattern FiletoSearchInto
if I use the -c it gives how many total lines it found out of my whole pattern file, but what if i want grep to report how many times it found each... (4 Replies)
Discussion started by: Browser_ice
4 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to create an XML sitemap of our dynamic ecommerce sites SEO Friendly URLs and am trying to create the initial page listing.
I have a CSV file that looks like the following and need duplicate the lines based on a value which needs calculating.
... (2 Replies)
Discussion started by: jamesfx
2 Replies
3. Shell Programming and Scripting
Hi,
I am trying to get lines between the last occurrences of two patterns. I have files that have several occurrences of “Standard” and “Visual”. I will like to get the lines between “Standard” and “Visual” but I only want to retain only the last one e.g.
Standard
Some words
Some words
Some... (4 Replies)
Discussion started by: damanidada
4 Replies
4. UNIX for Dummies Questions & Answers
I need help extracting specific lines in a text file. The file looks like this:
POSITION TOTAL-FORCE (eV/Angst)
-----------------------------------------------------------------------------------
1.86126 1.86973 1.86972 ... (14 Replies)
Discussion started by: captainalright
14 Replies
5. UNIX for Dummies Questions & Answers
I have a file with following data
A
B
C
I would like to print like this n times(For eg:n times)
A
B
C
A
B
C
A
B
C
A
B
C
A (3 Replies)
Discussion started by: nsuresh316
3 Replies
6. Shell Programming and Scripting
i have a script that scans a log file every 10 minutes. this script remembers the last line of the log and then uses it to continue monitoring the log when it runs again 10 minutes later.
the script searches the log for a string called MaxClients.
now, how can i make it so that when the... (7 Replies)
Discussion started by: SkySmart
7 Replies
7. Shell Programming and Scripting
Hello All, I have a file which has repeated lines. I want to print the lines which are repeated three times.
Please help. (3 Replies)
Discussion started by: ailnilanjan
3 Replies
8. Shell Programming and Scripting
can i get a simple script for , Count same word which has come many times in single lines & pars
Eg file would be ==
"Thanks heman thanks thanks
Thanks heman
thanks man"
So resullt should be
Thanks = 5
heman=2
man = 1
thanks in advance :)
Please use code tags for code and... (1 Reply)
Discussion started by: heman96
1 Replies
9. UNIX for Beginners Questions & Answers
Dears
i want to extract lines only that have first entry repeated 3 times or above , ex data :
-bash-3.00$ cat INTCONT-IS.CSV
M205-00-106_AMDRN:1-0-6-22,12-662-4833,intContact,2016-11-15 02:32:16,50
M205-00-106_AMDRN:1-0-23-17,12-616-0462,intContact,2016-11-15 02:32:23,50... (5 Replies)
Discussion started by: is2_egypt
5 Replies
10. Shell Programming and Scripting
Remove duplicate lines which has been repeated 4 times attached test.txt
below command tried and not getting expect output.
for i in `cat test.txt | uniq`
do
num=`cat test.txt | grep $i | wc -l`
echo $i $num
done
test.txt
... (17 Replies)
Discussion started by: Kalia
17 Replies
LEARN ABOUT DEBIAN
aephea-ref
aephea-ref(7) MISCELLANEOUS aephea-ref(7)
NAME
aephea-ref - A description of the Aephea definitions for referencing
DESCRIPTION
The following definitions are used by the Aephea simpledocument class as well as the Portable Unix Documentation (pud) manual and faq
classes (see pud-man(7) and pud-faq(7)).
MACROS
efload#2
efloadx#2
Both macros take as first argument a label that uniquely defines the reference. The second argument is a vararg containing key-value
pairs.
These macros are usually not needed in Aephea classes; they are lower level facilities.
ef#2
The first argument is a label. The second argument should be a key associated with that label. The result is the value associated with the
label/key pair.
These macros are usually not needed in Aephea classes; they are lower level facilities used by high level Aephea definitions (e.g.
iref#2, and secref#1).
efcaption#1
efnumber#1
eflevel#1
The argument is a label. The result is respectively the caption, number, or level associated with that label.
eference#1
efer#1
The first associates a number with the label that is in the first argument, and prints it inbeween square brackets. The label is anchored
to this location. The second outputs the associated number inbetween brackets, and makes it carry a link to the anchor. For example, I am
about to create a link [1] and another link [2] to the items appearing below.
[1] The first reference.
[2] The second reference.
If you prefer another bibliography style, find the macros and adapt them according to your needs - they are very simple.
eference#2 currently writes data to the file \__fnbase__.zmr, to be read back in using a load{\__fnbase__.zmr} statement. This is
automatically done when using any of the Aephea classes.
aephea-ref 1.002, 10-008 8 Jan 2010 aephea-ref(7)