05-02-2008
Thanks for the reply! I'll test any post the results.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to count the number of occurence of perticular word from one text file.
Please tell me "less" command is work in ksh or not. If it is not working then instead of that which command will work. :confused: (40 Replies)
Discussion started by: rinku
40 Replies
2. 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
3. Shell Programming and Scripting
Hi,
I have a file .. file.txt .. i need to get a total record count in the files into a $variable.. im using perl script
thanks (4 Replies)
Discussion started by: meghana
4 Replies
4. Shell Programming and Scripting
dear all,
i have a requirement to count the errors and display from a file.
eg. file1.txt
sjdgfjdgfgd ora-0001 sdjgfydh sdukgh7 23
sjdgfjdgfgd ora-0002 sdjgfydhsf34 ew 34v
sjdgfjdgfgd ora-0008 sdjgfydh asdf asdfas
sjdgfjdgfgd ora-0001 sdjgfydhjkbs ui873
sjdgfjdgfgd ora-0004 sdjgfydh... (9 Replies)
Discussion started by: unx100
9 Replies
5. UNIX for Dummies Questions & Answers
I'm trying to count the number of times each word in the file exist
for example if the file has:
today I have a lot to write, but I will not go for it. The main thing is that today I am looking for a way to get each word in this file with a word count after it specifying that this word has... (4 Replies)
Discussion started by: shnkool
4 Replies
6. Shell Programming and Scripting
Hello,
I want to add a sentence to "post column" those who are only less than 30 characters.Thank you very much for your help.
"category","title","post"
"Z","Zoo","test 54325 test 45363mc."
"Z","Zen","rs2w3rsj 2d342dg 2d3s4f23 d23423s23h 2s34s2423g ds232d34 2342."
"Z","Zet","test4444... (3 Replies)
Discussion started by: hoo
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
Please can you help how do I count the number of specific characters or words that appear in a file? (8 Replies)
Discussion started by: fretagi
8 Replies
8. UNIX for Dummies Questions & Answers
hi,
i am having a file which contains the below content, i need to take the word count of if and print the file name also
inputfile.txt
file_name1.txt,type_name1.txt
file_name2.txt,type_name2.txt
i would need the word count of the files like this
if file_name*.txt
then
wc -l... (10 Replies)
Discussion started by: rohit_shinez
10 Replies
9. Shell Programming and Scripting
Hi guys,
I have to append the word count of a file at the end of the file name like this - > "filename_2345" where 2345 is the word count of "filename". How do i achieve this using one command ? I am not allowed to store the word count in a variable and then concatenate. Request your... (1 Reply)
Discussion started by: peter2312
1 Replies
10. UNIX for Beginners Questions & Answers
I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
4 Replies
LEARN ABOUT CENTOS
xmltest
xmltest(1) General Commands Manual xmltest(1)
NAME
xmltest - Test script to send CIM-XML (via wbemcat) to CIMOM and compare to known results
SYNOPSIS
xmltest [FILE]
DESCRIPTION
xmltest is a script that is used to send a raw CIM-XML test file to the sfcb CIMOM (using wbemcat) and then compares the returned CIM-XML
results against a previously determined 'OK' result file to check whether the returned results match the expected results. If there does
not yet exist an 'OK' corresponding to the XML file then xmltest will save the returned results as the new OK file for later use. If the
returned CIM-XML results don't match the existing 'OK' file a new 'result' file will be generated containing the erroneous results.
If no FILE is specified xmltest will use all files with a .xml extension in the current directory path.
EXAMPLE
If there is no 'OK' file to compare returned CIM-XML results against xmltest will generate one.
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... OK
Saving response as test/getclass.Linux_OperatingSystem.OK
If the returned CIM-XML results match the existing 'OK' file xmltest will signal that the test passed.
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... Passed
If the returned CIM-XML results don't match the existing 'OK' file xmltest will signal that the tes failed and generate a 'result' file
containing the erroneous results.
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... FAILED
Check test/getclass.Linux_OperatingSystem.result for errors
PREREQUISITES
Requires wbemcat on search path.
AUTHOR
Dr. Gareth S. Bestor <bestor@us.ibm.com>
CONTRIBUTORS
Adrian Schuur <schuur@de.ibm.com>
BUGS
Does not adequately deal with additional http headers/footers caused by chunking responses, which will result in false failures when com-
paring results to existing "x.OK" files.
The SBLIM project maintains a mailing list to which you should direct all questions regarding sfcb, sfcc, wbemcli, or any of the SBLIM
providers. To subscribe to this mailing list visit
http://lists.sourceforge.net/lists/listinfo/sblim-issues
The SBLIM Project Bug tracking page can be found at
http://sourceforge.net/tracker/?group_id=128809&atid=712784
COPYRIGHT
(C) Copyright IBM Corp. 2004, 2005
AVAILABILITY
The Small-Footprint CIM Broker (sfcb) is a part of the SBLIM project. The most recent version is available on the web at
http://sblim.sourceforge.net/
SEE ALSO
wbemcat(1)
xmltest Version 1.3.16 August 2005 xmltest(1)