My script is not working right
Can anyone tell me what is wrong?
$ cat Memo20 twoliner="This is line 1. This is line 2." $ IFS="." echo "$twoliner" This is line 1. This is line 2. echo $twoliner This is line 1 This is line 2 With this script both echos should display the same, but they don't. The first echo has . at the end of sentence. The second echo does not have an . |
Quote:
of shell activities you posted doesn't make too much sense to me. Is this really what you did, with the results you posted? Cheers, Tink |
Quote:
$ cat Memo20 twoliner="this is line 1. This is line 2." $ IFS="." $ echo "$twoliners" $ echo $twoliners I added the IFS command. |
Quote:
created/populated in your session? And looking at that transcript the output (zippo) does look the same? Cheers, Tink |
Quote:
Without the IFS command I added the output of the echos is this: echo1 is This is line 1. This is line 2. echo2 is This is line 1. This is line 2. Does this help? |
Quote:
I figured it out, Thanks for the help!! |
All times are GMT -5. The time now is 04:38 PM. |