LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "How to display string @ row,column? How to time a 'sorting' operation?" (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-display-string-%40-row-column-how-to-time-a-sorting-operation-826141/)

ankur007 08-13-2010 11:50 PM

"How to display string @ row,column? How to time a 'sorting' operation?"
 
1.
Given a string, row no. and col. no.,i want to display it in the screen appropriately. how to do this?


2.How can i find the cpu processing time taken in carrying out the sorting task (any sorting program)?

linuxlover.chaitanya 08-14-2010 12:02 AM

Homeworks not allowed. Try it yourself and when you are stuck at some point, come back with the issue.
Also, use better thread titles that describe your problem. And give more information about the problem.

Wim Sturkenboom 08-14-2010 05:47 AM

Your first question is vague. For the second one, I think the time man page will get you going.

Mara 08-14-2010 06:18 AM

Moderator note:
Title changed to tell something about the problem(s).

Also, it looks like a homework question. How have you tried to find your answers?

jv2112 08-14-2010 06:59 PM

1 Attachment(s)
Not sure if this is what you are referring to in #1

Code:

ls | pr -3 -h "Homework" -n  -w 65 -o 10 | less


All times are GMT -5. The time now is 07:26 AM.