![]() |
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 |
| break out of 'if' | finalight | Shell Programming and Scripting | 7 | 11-19-2008 03:54 PM |
| how to read record by record from a file in unix | raoscb | UNIX for Dummies Questions & Answers | 1 | 05-16-2008 06:30 AM |
| Script to search a bad record in a file then put the record in the bad file | shilendrajadon | Shell Programming and Scripting | 2 | 12-28-2007 10:02 AM |
| Script to search a bad record in a file then put the record in the bad file | shilendrajadon | UNIX for Advanced & Expert Users | 1 | 12-28-2007 10:00 AM |
| splitting a record and adding a record to a file | rsolap | Shell Programming and Scripting | 1 | 08-13-2007 01:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help using IFS to break up a record (ksh)
I have a program that produces output similar to this:
Code:
16010001pe3m_313101.ver 16010001pe3m_313101.ver 16010001pe4m_0 16010001pe4m_0 16010001pe4m_1 16010001pe4m_1 16010001pe4m_313101.ver 16010001pe4m_313101.ver group_defs.txt Group Definition File Code:
16010001pe3m_313101.ver 16010001pe3m_313101.ver 16010001pe4m_0 16010001pe4m_0 16010001pe4m_1 16010001pe4m_1 16010001pe4m_313101.ver 16010001pe4m_313101.ver group_defs.txt Group Definition File Code:
typeset -L80 relative_path typeset -L80 description typeset -i count=0 OFS=IFS IFS=' ' for i in $(program) do print $i done I've tried using... Code:
IFS=' ' while read var1 var2 do print $var1 $var2 done < $(program) How do you set IFS to a blank line? Suggestions welcome. Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|