Assistance on work

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Assistance on work
# 1  
Old 04-02-2011
Assistance on work

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

Files stored in /bin, /sbin, /usr/bin, and /usr/sbin vary in their respective sizes. In fact, there are 244 different sizes if we do not count the zero byte files. Create a command line that proves this and stores the answer, 244, in a files named sizes.txt. 2. Relevant commands, code, scripts, algorithms:
See below?


3. The attempts at a solution (include all code and scripts):
  1. du -a /{,usr/}{,s}bin | sort -nu | grep -v ^0 | wc -l > ~/exam2/sizes.txt
    248
I am close but i cant figure out how or why it counts the directories themselves


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
KeeneStateCollege(KSC), Keene(NH), USA

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
# 2  
Old 04-02-2011
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need assistance with looping

Hi, I have a find command that searches for all the .properties under current directory and its subdirectories. find . -name "*.properties" I would like to pass the output of the above find command to my "operation.sh script as the second parameter. for eg: ./operation.sh 775 ... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies

3. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies

4. Shell Programming and Scripting

Need assistance with sed

Hi All, I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text: Device | IPMB0-A | IPMB0-B Board Address |Sent SentErr %Errr |Sent SentErr ... (9 Replies)
Discussion started by: Dendany83
9 Replies

5. Shell Programming and Scripting

An urgent assistance

Hi. Does any one know when the below will print hi ? || echo hi Thanks in advance (5 Replies)
Discussion started by: kinny
5 Replies

6. UNIX for Dummies Questions & Answers

While Loop assistance.

I am trying to make a simple while loop which reads in a text until the person types quit. And it's not working, and I know it's a rather simple problem I just can't seem to understand... Once again all assistance is greatly appreciated. #!/bin/sh astring="z" while astring!="quit" do read... (2 Replies)
Discussion started by: MaestroRage
2 Replies

7. Shell Programming and Scripting

I need an assistance

I have a school project to create a shell program same as calendar i must create a txt file with celebrations with vi i know this but the problem is i don't know awk and grep. The object of object is to create a program who read a date an appear the celebration. Can you help me please !!!... (1 Reply)
Discussion started by: mytilini boy
1 Replies

8. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

9. UNIX for Dummies Questions & Answers

Need Assistance

I have two questions I am struggling with... How do the programs p1, p2, and p3 need to handle their standard files so they can work like this: p1 | p2 | p3 ? What exactly is this command supposed to do? $ kill -QUIT %1 & This command below? $ sort -o emp.lst emp lst & Any... (1 Reply)
Discussion started by: yahoo14
1 Replies
Login or Register to Ask a Question