The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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 vijay_0209 Shell Programming and Scripting 3 08-06-2008 06:47 AM
Formatting mirusnet Shell Programming and Scripting 3 01-06-2008 11:38 PM
Formatting using awk cdunavent Shell Programming and Scripting 2 03-18-2003 02:09 PM
formatting tamemi UNIX for Dummies Questions & Answers 5 07-21-2002 09:03 AM
formatting darryll777 UNIX for Dummies Questions & Answers 1 03-04-2002 01:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-28-2008
jafa401 jafa401 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 21
>> append formatting

Code:
  var=$(find /etc/*)
        tput smso
        ls -l | echo $var >> log
i am losing at the formatting when i append it to the log
is another way of doing it

Last edited by jafa401; 10-28-2008 at 10:04 PM..
  #2 (permalink)  
Old 10-28-2008
KenJackson KenJackson is offline
Registered User
  
 

Join Date: May 2008
Location: Maryland, USA
Posts: 104
You could try this:
Code:
find /etc/ >> log
If you do it your original way, you need to add quotes so all the files get assigned to the variable:
Code:
var="$(find /etc/)"
Also, I don't think there is anything to be achieved by piping anything into the echo command.

Last edited by KenJackson; 10-28-2008 at 10:41 PM.. Reason: typo
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0