![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 04:30 AM |
| How to Display a range of values in the output of cat | venu_nbk | UNIX for Dummies Questions & Answers | 8 | 05-12-2007 10:13 PM |
| display and output...question | happyv | Shell Programming and Scripting | 5 | 01-24-2007 11:14 PM |
| To display 1 or 2 space bar output | missutoomuch | Shell Programming and Scripting | 2 | 02-11-2006 01:25 PM |
| output display alignment !! | rosh0623 | Shell Programming and Scripting | 7 | 07-21-2005 03:51 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need to display sorted output on 1 line!
#!/bin/bash
{ [ $# -ge 1 ] && [ $# -le 5 ]; } || { echo "Must enter between 1 and 5 parameters" exit 1 } for P do echo $P >> /tmp/task3 done echo "SORTED: $(sort -n -r /tmp/task3)" rm -f /tmp/task3 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Remove the quotes around the echo "SORTED:....." line - as long as you don't have whitespace in your passed parameters.
Cheers ZB |
|
#3
|
|||
|
|||
|
thanks worked!
|
|||
| Google The UNIX and Linux Forums |