LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-13-2010, 11:50 PM   #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, 12:02 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 05:47 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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, 06:18 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 06:59 PM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
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:	8
Size:	51.9 KB
ID:	4316  
 
1 members found this post helpful.
  


Reply



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 09:36 AM
transpose row to column? resolute155 Programming 3 09-07-2009 02:29 PM
how to get the second column and first row data from a file??? loplayers Linux - Newbie 3 11-05-2007 07:35 PM
Gnumeric's worksheet doesn't display row and column headers correctly frazum Linux - Software 4 07-09-2007 11:53 AM
Transposing a column into a row mayyash Linux - General 1 09-30-2005 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 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
Open Source Consulting | Domain Registration