04-15-2010
I was not sure if the OP has to search explicit for *.mxml and *.css or if there are other files with different suffixes as input.
Also some of the solutions do not work properly if there is more than 1 dot in the filename.
Also if there is only those 2 suffixes, I stated in my 1st post:
Quote:
If there is only *.css and *.mxml files, you can leave the grep out of course.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the task of removing all uppercase words from csv files, mit
10000's lines. I think it shoud be possible with regex's, something
like "s/{2,}//g" but I can't get it work with sed or Vi. It would
also be possible to script in ksh, awk, perl or python.
example
this "this is a EXAMPLE... (5 Replies)
Discussion started by: frieling
5 Replies
2. Shell Programming and Scripting
I have a file that needs to be cleaned up. Here is the file:
Project
Project John
Project Gary
Project Sean
Project2
Project2 Lisa
Project2 Tyler
Project2 Sam
Project3
Project3 Mike
Project3 Bran
I need the o/p to be:
Project
John
Gary
Sean
Project2 (7 Replies)
Discussion started by: leepet01
7 Replies
3. Shell Programming and Scripting
Hello,
I have a complex problem. I have a file in which words have been joined together:
Theboy ranslowly
I want to be able to correctly split the words using a lookup file in which all the words occur:
the
boy
ran
slowly
slow
put
child
ly
The lookup file which is meant for look up... (21 Replies)
Discussion started by: gimley
21 Replies
4. Shell Programming and Scripting
i want to write a shell script that correct a text file.for example if i have the input file:
"john has has 2 apples
anne has 3 oranges oranges"
i want that the output file be like this:
"john has 2 apples
anne has 3 oranges"
i've tried to read line by line from input text file into array... (11 Replies)
Discussion started by: cocostaec
11 Replies
5. Shell Programming and Scripting
Hi ,
I have a .csv file,from which I want to remove some data from each column as below.
Source Data
GT_12_AUDIT,SCHEDULED,NOZOMI2010/GT_12_AUDIT,CTSCAN/Zh_GT_6547887/GT_12_AUDIT,CTSCAN/Zh_GT_6547887... (3 Replies)
Discussion started by: gaur.deepti
3 Replies
6. Shell Programming and Scripting
I have file like below
Hi iam author <br>joseph</br> in france.
I live in my home <br></br> but no food.
I will play footbal <br></br> but i wont play cricket.
I will read all the books <br>all fiction stories</br> i hate horror stories.
I want output like below
Hi iam author... (3 Replies)
Discussion started by: vinothsekark
3 Replies
7. Shell Programming and Scripting
Dear all,
I am working with names and I have a large file of names in which some words are written together (upto 4 or 5) and their corresponding single forms are also present in the word-list.
An example would make this clear
annamarie
mariechristine
johnsmith
johnjoseph smith
john
smith... (8 Replies)
Discussion started by: gimley
8 Replies
8. Shell Programming and Scripting
Hi ,
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
1 Replies
9. Shell Programming and Scripting
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
Discussion started by: saravanapandi
2 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
cssdiff
cssdiff(1) CRM114 cssdiff(1)
NAME
cssdiff - generate a difference summary of two .css files
SYNOPSIS
cssdiff [cssfile 1] [cssfile 2]
WARNING
This man page is taken from an older CRM114 version. It is provided as a convenience to Debian users and may not be up-to-date. If you
would like to update it, please send appropriate patches to the Debian bug tracking system.
DESCRIPTION
cssdiff is a special-purpose utility to measure the distance between the classes represented by cssfile1 and cssfile2. The summary result
output tells how many features were in each of the .css files, how many features appeared in both (balanced overlap), how many features
appeared only in one (or unbalanced overlaps), and how often the feature set of one .css file strictly dominated the feature set of another
.css file. This set of metrics provides an intuitive way to determine the similarity (or dissimilarity) of two classes represented as .css
files. When using the CRM114 spamfilter, it can be used to find out how easy it will be for CRM114 to differentiate spam from nonspam with
your .css files. cssdiff prints a report like e.g.
Sparse spectra file spam.css has 1048577 bins total
Sparse spectra file nonspam.css has 1048577 bins total
File 1 total features : 1605968
File 2 total features : 1045152
Similarities between files : 142039
Differences between files : 1279964
File 1 dominates file 2 : 1463929
File 2 dominates file 1 : 903113
Note that in this case there's a big difference between the two files; in this case there are about 10 times as many differences between the
two files as there are similarities.
OPTIONS
There are no options to cssdiff.
SHORTCOMINGS
Note that cssdiff as of version 20040816 is NOT capable of dealing with the CRM114 Winnow classifier's floating-point .cow files. Worse,
cssdiff is unaware of it's shortcomings, and will try anyway. The only recourse is to be aware of this issue and not use cssdiff on Winnow
classifier floating point .cow format files.
HOMEPAGE AND REPORTING BUGS
http://crm114.sourceforge.net/
VERSION
This manpage: $Id: cssdiff.azm,v 1.5 2004/08/19 09:06:44 vanbaal Exp $ This manpage describes cssdiff as shipped with crm114 version
20040816.BlameClockworkOrange.
AUTHOR
William S. Yerazunis. Manpage typesetting by Joost van Baal and Shalendra Chhabra
COPYRIGHT
Copyright (C) 2001, 2002, 2003, 2004 William S. Yerazunis. This is free software, copyrighted under the FSF's GPL. There is NO warranty;
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more details.
SEE ALSO
cssutil(1), cssmerge(1), crm(1), cssmerge(1)
cssdiff 20040816.BlameClockworkOrange-auto.3 19 Aug 2004 cssdiff(1)