The UNIX and Linux Forums  

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
function in UNIX luna_soleil Shell Programming and Scripting 8 02-26-2009 01:22 PM
Recursive function call problem netresearch Shell Programming and Scripting 2 01-28-2009 07:30 AM
Problem with Recursive function malle Shell Programming and Scripting 4 02-03-2007 10:40 AM
recursive function bebop1111116 High Level Programming 1 10-30-2006 08:12 PM
Performing a non-recursive find in Unix christallott UNIX for Advanced & Expert Users 3 09-06-2002 10:13 AM

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 04-18-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
awk is pretty much like C. It splits input records according to the RS variable, and splits fields according to the FS variable. So a,1,b,a,2 are separated commas, and you can get awk to efficiently split along the RS variable:

Code:
awk 'BEGIN { FS="," } { print "," $0 }'

Closed Thread

Bookmarks

Tags
awk, comma-delimited, csv

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 07:45 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