![]() |
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 |
| simple shell - how to get a parameter typed in a shell script | cmitulescu | Shell Programming and Scripting | 4 | 01-09-2009 08:45 PM |
| Simple Shell Script Need Help | kulbir | Shell Programming and Scripting | 2 | 02-27-2008 01:14 AM |
| what's the largest shell script you've ever written? | OFFSIHR | Shell Programming and Scripting | 2 | 04-26-2007 10:54 AM |
| need a simple shell script | Mar1006 | Shell Programming and Scripting | 1 | 08-01-2006 10:45 AM |
| Simple shell script to be written | shsandeep | UNIX for Dummies Questions & Answers | 2 | 07-17-2006 01:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Simple shell script to be written
There are 2 shell script files sh1 and sh2.
sh2 contains records such as 01 02 03 on different lines. In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable. Can somebody please help me with the sh1 script? Thanks in advance. Cheers, San. |
|
||||
|
Sample data
I am a newbie to shell scripting, so have not started anything....
Here is what sh2 will have: 01 02 03 04 05 In sh1, I would like to have a variable 'str' to have '01,02,03,04,05' in it. Thanks for replying... Cheers, San. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|