Search Results

Search: Posts Made By: johnrichards
3,236
Posted By johnrichards
Yes its for all files in the current directory ...
Yes its for all files in the current directory
my command should be like: ./count.sh file1.txt file2.txt emptyfile1.txt

I will try your way of doing the script.

---------- Post updated at...
3,236
Posted By johnrichards
Can you help me out, i'm a beginner. So its a bit...
Can you help me out, i'm a beginner. So its a bit difficult for me
How can i read them?
3,236
Posted By johnrichards
$1 $2 $3 are parameters. Value: file1 file2 file3...
$1 $2 $3 are parameters. Value: file1 file2 file3
$#: its to switch from $1 to $2 and $3 with shift. it redoes the script again for each parameter.

I got 3 files. 2 are filled with words and 1...
3,236
Posted By johnrichards
yes i will
yes i will
3,236
Posted By johnrichards
Word count files in UNIX
My files:
file1 and file2 contain 157 words.
Emptyfile1 contain 0 words.

My script has to output how many files is filled with words and how many that are not.

If there are files that have...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy