LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2010, 12:50 AM   #1
ankur007
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
"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)?
 
Old 08-14-2010, 01:02 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 08-14-2010, 06:47 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Your first question is vague. For the second one, I think the time man page will get you going.
 
Old 08-14-2010, 07:18 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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?
 
Old 08-14-2010, 07:59 PM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Not sure if this is what you are referring to in #1

Code:
ls | pr -3 -h "Homework" -n  -w 65 -o 10 | less
Attached Thumbnails
Click image for larger version

Name:	2010-08-14-195640_1024x600_scrot.png
Views:	6
Size:	51.9 KB
ID:	4316  
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ask awk] remove certain row in a column dhodho Programming 18 06-08-2010 10:36 AM
transpose row to column? resolute155 Programming 3 09-07-2009 03:29 PM
how to get the second column and first row data from a file??? loplayers Linux - Newbie 3 11-05-2007 08:35 PM
Gnumeric's worksheet doesn't display row and column headers correctly frazum Linux - Software 4 07-09-2007 12:53 PM
Transposing a column into a row mayyash Linux - General 1 09-30-2005 03:23 AM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration