Computing.Net > Forums > Unix > unix doubts

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

unix doubts

Reply to Message Icon

Original Message
Name: ram
Date: July 27, 2002 at 13:11:50 Pacific
Subject: unix doubts
Comment:

1. how to know the cpu speed from c program?
2. how to cut fields of ls -l into a file say iu want ninth field of ls -l output what do i give as delimiter to cut ?

thank you
ram


Report Offensive Message For Removal


Response Number 1
Name: Tim
Date: July 27, 2002 at 21:19:07 Pacific
Reply: (edit)

Question (2) is the easiest to answer first:

ls -l | awk '{print $9}'

Question (1) is more difficult. on a Solaris box, you can run a c System() call and return the the results of the psrinfo -v command.



Report Offensive Follow Up For Removal

Response Number 2
Name: ram
Date: July 30, 2002 at 01:37:41 Pacific
Reply: (edit)

thank you very much,
i have another doubt;
1.] how to list all files except something
like list all files in a directory except *.o files
2.] how to get more information on the last modified time that is displayed by ls -lt

thank you
ram



Report Offensive Follow Up For Removal

Response Number 3
Name: joe
Date: July 30, 2002 at 10:24:19 Pacific
Reply: (edit)

Sounds like someone wants all their homework done for them ......


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software