![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you delete multiple text from a comma delimited file | dolo21taf | Shell Programming and Scripting | 1 | 02-20-2008 02:12 AM |
| How to execute multiple commands via ssh | srage | Shell Programming and Scripting | 9 | 01-05-2008 12:18 AM |
| how do i get my script to execute multiple commands? | hvincent | Shell Programming and Scripting | 1 | 04-26-2006 05:19 AM |
| multiple sed commands | george_ | Shell Programming and Scripting | 5 | 03-30-2006 07:35 AM |
| Alias confusion - multiple commands ? | HikerLT | UNIX for Dummies Questions & Answers | 1 | 11-17-2003 09:01 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Multiple commands TAB delimited
Hey guys...
Running Solaris 5.6, trying to write an easy /sbin/sh script. I want to run several commands, then have the results appear on one line. Additionally, I want the results to be separated by <TAB>. Let's say that my script calls three commands (date, pwd, and hostname), I would want the results to look like this: Mon May 9 12:56:12 EDT 2005 /usr/contrib FCIVRA As opposed to this: Mon May 9 12:56:12 EDT 2005 /usr/contrib FCIVRA Any ideas?? Thanks, -cd |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
See the man page for the printf command.
|
|
#3
|
||||
|
||||
|
echo $(date;pwd;hostname)
|
||||
| Google The UNIX and Linux Forums |