Home Man
Today's Posts

OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

Create a bash array from a flat file of whitespaces only.


Login to Reply

Thread Tools Search this Thread
# 8  
Old 02-05-2018
Try also
ARRAY=( $(sed 's/./&,/g;' /tmp/ARRAY) )

You may want to save the old IFS value beforehand.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash to search file based off user input then create new file cmccabe Shell Programming and Scripting 5 05-01-2015 10:47 AM
Create a flat file and directory structure heros Shell Programming and Scripting 11 02-26-2013 04:41 AM
Read a flat file, evaluate and create output. UNIX SCRIPT. mrreds UNIX for Dummies Questions & Answers 4 04-19-2012 06:02 PM
perl: Read array from a flat file Pratik4891 Shell Programming and Scripting 8 11-23-2011 10:30 AM
how to create flat file delimited by "\002" injey Shell Programming and Scripting 4 12-29-2010 07:00 AM
Configure disk array in RAID5 and create file system Kjons76 Solaris 6 12-14-2010 01:01 PM
Possible performance improvement (Bash and flat file) prafulnama Infrastructure Monitoring 9 05-11-2010 06:05 PM
How do I create an array from a file using every 3rd line BRH Shell Programming and Scripting 15 08-07-2009 10:15 AM
csv file to array, match field1, replace in flat file field1 to field2 frankie_konin Shell Programming and Scripting 23 02-03-2009 02:46 PM
create array holding characters from sring then echo array. rorey_breaker Shell Programming and Scripting 5 09-28-2007 08:42 AM

All times are GMT -4. The time now is 11:08 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password