![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formatting Output | dhanamurthy | Shell Programming and Scripting | 6 | 05-02-2008 11:43 AM |
| Formatting | mirusnet | Shell Programming and Scripting | 3 | 01-06-2008 11:38 PM |
| formatting | tamemi | UNIX for Dummies Questions & Answers | 5 | 07-21-2002 09:03 AM |
| formatting | xeron | UNIX for Dummies Questions & Answers | 5 | 03-20-2002 11:33 AM |
| formatting | darryll777 | UNIX for Dummies Questions & Answers | 1 | 03-04-2002 01:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Formatting using awk
Let's say I write a simple script that contains the following:
date | awk '{print $1}' date | awk '{print $2}' Of course, when I run the script the output will look similar to: Tue Mar What if I want my ouput to be on one line as follows: Tue Mar What changes would I need to make to my script (#!/bin/csh)? THanks -cd |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|