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
Wrapping Your Brain Around Oracle + Python iBot Oracle Updates (RSS) 0 04-06-2008 05:10 AM
Wrapping ksh script nir_s Shell Programming and Scripting 2 05-30-2006 02:37 AM
problem with new line mskcc Shell Programming and Scripting 8 04-06-2006 09:00 AM
Sed new line problem Cordially UNIX for Dummies Questions & Answers 1 03-03-2004 11:53 AM
Wrapping a bash script for CGI andyj Shell Programming and Scripting 2 07-16-2003 12:46 PM

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

Join Date: May 2005
Posts: 7
Line wrapping problem when using awk

I am fairly new at this,

I wrote a awk program to give me some summary information about a file. At the end of the program I want to print some variables but for some reason it keeps wrapping the last variable on a new line in the output file.

Here is the print command

print "99", file_id, file_status, file_rec_total, rec_count, file_hash_total,line_rec_total

I get all the variables in the output but the last one on a different line:

99 GEACPENSION PASSED 14304 14304 1517113.23
1517113.23

Is it because of the number of variables? Is there a way to set up a no wrap rule?
  #2 (permalink)  
Old 05-10-2005
placroix1 placroix1 is offline
Registered User
  
 

Join Date: May 2005
Posts: 7
Forget about my last request. I was picking up a carriage return in one of my variables causing the line to wrap.

Everything is fine now!
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 04:28 PM.


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