Sponsored Content
Full Discussion: Word count files in UNIX
Top Forums Shell Programming and Scripting Word count files in UNIX Post 302920126 by johnrichards on Tuesday 7th of October 2014 11:29:13 AM
Old 10-07-2014
Can you help me out, i'm a beginner. So its a bit difficult for me
How can i read them?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

word count ascii files

how do I display the total number of words in a file which is of the type ascii text (1 Reply)
Discussion started by: madtim
1 Replies

2. Shell Programming and Scripting

Word count of lines ending with certain word

Hi all, I am trying to write a command that can help me count the number of lines in the /etc/passwd file ending in bash. I have read through other threads but am yet to find one indicating how to locate a specifc word at the end of a line. I know i will need to use the wc command but when i... (8 Replies)
Discussion started by: warlock129
8 Replies

3. Shell Programming and Scripting

Need script to count specific word and iterate over number of files.

Hi Experts, I want to know the count of specific word in a file. I have almost 600+ files. So I want to loop thru each file and get the count of the specific word. Please help me on achieving this... Many thanks (2 Replies)
Discussion started by: elamurugu
2 Replies

4. Shell Programming and Scripting

~~Unix command to count a particular word in the whole directory .~~

Hi , i'm trying to count a particular word occurance in a whole directory..is this possible :wall: say for example there is a directory with 100 files which and all the file may have the word 'aaa' in it ...how would i count the number of 'aaa' in those whole 100 files in a directory ? ... (10 Replies)
Discussion started by: Rabbitsfoot
10 Replies

5. UNIX for Dummies Questions & Answers

Separate text files in a folder by word count

Hi, been searching Google for like an hour and I doubt I got the right keywords so might as well ask here. What I need: Before: Article1.txt 564 Article2.txt 799 Article3.txt 349 Article4.txt 452 * Separate files over 400 wordcount * After: Article1.txt 564... (3 Replies)
Discussion started by: Richard2000
3 Replies

6. Shell Programming and Scripting

total count of a word in the files

Hi Friends, Need help regarding counting the word "friend" in files test1.txt and test2.txt. ( there is no gap/space between word ) cat test1.txt himynameisrajandiamfriendofrajeshfriend wouldyouliketobemyfriend. cat test2.txt himynameisdostandiamfriendofdostfriend... (2 Replies)
Discussion started by: forroughuse
2 Replies

7. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

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

8. Shell Programming and Scripting

Word count in html files

Hi does somebody know how to do a word count in a .html file? Just the text words, without all the html code. Thanks (4 Replies)
Discussion started by: louisJ
4 Replies

9. UNIX for Beginners Questions & Answers

UNIX script to check word count of each word in file

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
mattrib(1)						      General Commands Manual							mattrib(1)

Name
       mattrib - change MSDOS file attribute flags

Note of warning
       This  manpage  has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete.  See the
       end of this man page for details.

Description
       Mattrib is used to change MS-DOS file attribute flags. It has the following syntax:

       mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] [-/]  [-p] [-X] msdosfile [ msdosfiles ... ]

       Mattrib adds attribute flags to an MS-DOS file (with the `+' operator) or remove attribute flags (with the `-' operator).

       Mattrib supports the following attribute bits:

       a      Archive bit.  Used by some backup programs to indicate a new file.

       r      Read-only bit.  Used to indicate a read-only file.  Files with this bit set cannot be erased by DEL nor modified.

       s      System bit.  Used by MS-DOS to indicate a operating system file.

       h      Hidden bit.  Used to make files hidden from DIR.

       Mattrib supports the following command line flags:

       /      Recursive.  Recursively list the attributes of the files in the subdirectories.

       X      Concise. Prints the attributes whithout any whitespace padding.  If neither the "/" option is given, nor the  msdosfile  contains  a
	      wildcard, and there is only one Msdos file parameter on the command line, only the attribute is printed, and not the filename.  This
	      option is convenient for scripts

       p      Replay mode.  Outputs a series of mformat commands that will reproduce the current situation, starting from a situation as  left	by
	      untarring  the  Dos  filesystem.	 Commands are only output for attribute settings that differ from the default (archive bit set for
	      files, unset for directories).  This option is intended to be used in addition to tar. The readonly  attribute  is  not  taken  into
	      account, as tar can set that one itself.

See Also
       Mtools' texinfo doc

Viewing the texi doc
       This  manpage  has  been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some
       items, such as crossreferences, footnotes and indices are lost in this translation process.  Indeed, these items have no appropriate repre-
       sentation  in  the manpage format.  Moreover, not all information has been translated into the manpage version.	Thus I strongly advise you
       to use the original texinfo doc.  See the end of this manpage for instructions how to view the texinfo doc.

       *      To generate a printable copy from the texinfo doc, run the following commands:

		     ./configure; make dvi; dvips mtools.dvi

       *      To generate a html copy,	run:

		     ./configure; make html

	      A premade html can be found at: `http://mtools.linux.lu' and also at: `http://www.tux.org/pub/knaff/mtools'

       *      To generate an info copy (browsable using emacs' info mode), run:

		     ./configure; make info

       The texinfo doc looks most pretty when printed or as html.  Indeed, in the info version certain examples are difficult to read due  to  the
       quoting conventions used in info.

mtools-3.9.8							      02Jun01								mattrib(1)
All times are GMT -4. The time now is 01:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy