![]() |
|
|
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 |
| Delimited File Help | garpal | UNIX for Dummies Questions & Answers | 6 | 03-28-2008 09:58 AM |
| awk - delimited output | videsh77 | UNIX for Advanced & Expert Users | 1 | 12-04-2007 10:41 PM |
| Check whether a given file is in ASCII format and data is tab-delimited | Mandab | Shell Programming and Scripting | 9 | 05-03-2007 07:25 PM |
| Delimited files | hrshah74 | Shell Programming and Scripting | 4 | 02-01-2006 12:42 PM |
| Converting Tab delimited file to Comma delimited file in Unix | charan81 | Shell Programming and Scripting | 22 | 01-20-2006 09:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello people,
Can you please tell me how to loop thru the contents of a variable having tab delimited data using for loop in KSH. For example: data1 data2 data3 data4 How can I access the above data in a for loop? Please let me know. Thanks. Regards, T. |
|
||||
|
Here it is:
files=`ls -1 $dir` for file in `echo $files` do echo $dir/$file done -- I wanted to list the files in a folder and use that list for further processing. Instead of taking the filenames into a file, I take it into a variable. The filenames here are tab delimited. Regards, T. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|