Re: IFS variable in bash

2003-10-11 Thread Michael Hipp
Matthew Carpenter wrote:
On Thu, 09 Oct 2003 20:36:47 -0500
Michael Hipp [EMAIL PROTECTED] wrote:
I don't seem to understand the IFS variable in bash. I know it's the 
internal field separator and it defaults to SPACE TAB NEWLINE. But I 
want to set it to just NEWLINE.

I've tried \n '\n' and just \n all to no avail. Those mostly seem to 
change it to backslash enn. Surely there is some way to just set it to 
newline.
 I show: IFS=$' \t\n'

 Try IFS=$'\n'
Thanks, Matthew, that worked perfectly.

Michael

___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users


Re: IFS variable in bash

2003-10-10 Thread Michael Hipp
Matthew Carpenter wrote:
I show: IFS=$' \t\n'

Try IFS=$'\n'
Thank you. I'll try it later.

Michael

___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users


Re: IFS variable in bash

2003-10-10 Thread Douglas J Hunley
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Hipp wrote:
 Matthew Carpenter wrote:
  I show: IFS=$' \t\n'
 
  Try IFS=$'\n'

 Thank you. I'll try it later.

If that dont cut it:
IFS=CTRL-VENTER

where everything in  is the keys to press

- -- 
Douglas J Hunley (doug at linux-sxs.org) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
and http://jobs.linux-sxs.org

panic(kmem_cache_init(): Offsets are wrong - I've been messed with!); -- 
2.2.16 /usr/src/linux/mm/slab.c
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/hvSN2MO5UukaubkRAiiNAKC0wkOsvqTMf6IuG8Kce3C6ALiNSwCcCJFi
t2s8M7SOUucmtyKm5Xz3I+c=
=h4lr
-END PGP SIGNATURE-


___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users


IFS variable in bash

2003-10-09 Thread Michael Hipp
I don't seem to understand the IFS variable in bash. I know it's the 
internal field separator and it defaults to SPACE TAB NEWLINE. But I 
want to set it to just NEWLINE.

I've tried \n '\n' and just \n all to no avail. Those mostly seem to 
change it to backslash enn. Surely there is some way to just set it to 
newline.

Thanks,
Michael
___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users


Re: IFS variable in bash

2003-10-09 Thread Matthew Carpenter
I show: IFS=$' \t\n'

Try IFS=$'\n'


On Thu, 09 Oct 2003 20:36:47 -0500
Michael Hipp [EMAIL PROTECTED] wrote:

 I don't seem to understand the IFS variable in bash. I know it's the 
 internal field separator and it defaults to SPACE TAB NEWLINE. But I 
 want to set it to just NEWLINE.
 
 I've tried \n '\n' and just \n all to no avail. Those mostly seem to 
 change it to backslash enn. Surely there is some way to just set it to 
 newline.
 
 Thanks,
 Michael
 
 ___
 Linux-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users
 
 


-- 
Matthew Carpenter 
[EMAIL PROTECTED]  http://www.eisgr.com/

Enterprise Information Systems
* Network Server Appliances
* Network Consulting, Integration  Support
* Web Integration and E-Business

___
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc - http://smtp.linux-sxs.org/mailman/listinfo/linux-users