Advertisement

05.13.2005 at 02:31PM PDT, ID: 21423911
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Reading a large file and processing it.

Asked by snjv1975 in Unix Systems Programming

Tags: , ,

I have problem here , Here is what I am trying to do , I have file with around 5000 line that contains the login id of all the person
the file look like
ay375
dc135
bd323
cn004
...

and so on, I have to calculate the disk space used by each user. if any body has any script ready that will be great for me.
Here is what I am trying to do.

#! /bin/csh -f

   set SOURCE_FILE =  users_name.txt
   echo "$SOURCE_FILE"
   
   set SOURCES = (`cut -c-5  $SOURCE_FILE`)
#   set SOURCES = (`cat user_name.txt | awk -F, '{print $1}'`)
#   set i = 1
echo "$SOURCE_FILE"
   foreach SOURCE ($SOURCES)
   echo $SOURCE
  cd ~$SOURCE
   if (-e ~$SOURCE) then
     df -k | grep $SOURCE > /tmp/$$.$SOURCE.txt
   else
   df -kF nfs | grep $SOURCE > /tmp/$$.$SOURCE.txt
 endif
   cat /tmp/$$.$SOURCE.txt >> /tmp/$$.temp_home.txt
  rm /tmp/$$.$SOURCE.txt
   end
  cp /tmp/$$.temp_home.txt  temp_home.txt
   rm /tmp/$$.temp_home.txt
exit

My problem is when i run this script it run fine if the file containing login user is less but when i run it with actual file it gives me error , Too many word in ` `.

Can any body help me resolving this


Start Free Trial
[+][-]05.14.2005 at 09:54AM PDT, ID: 14003014

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Unix Systems Programming
Tags: file, large, processing
Sign Up Now!
Solution Provided By: ahoffmann
Participating Experts: 5
Solution Grade: A
 
 
[+][-]05.15.2005 at 04:15PM PDT, ID: 14007326

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2005 at 06:39PM PDT, ID: 14007725

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.16.2005 at 05:30AM PDT, ID: 14009541

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.16.2005 at 12:19PM PDT, ID: 14013271

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.16.2005 at 03:08PM PDT, ID: 14014676

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2005 at 01:58AM PDT, ID: 14016863

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2005 at 02:26AM PDT, ID: 14016964

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2005 at 08:56PM PDT, ID: 14024357

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2005 at 03:17PM PDT, ID: 14333933

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2006 at 11:56AM PST, ID: 15705927

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.19.2006 at 07:36AM PST, ID: 15994194

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02.27.2006 at 06:08PM PST, ID: 16061163

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32