From a bash array to a csv file line?
I want to put all my variables in an array and then have bash "read"
the input from the user (me) at runtime for each and then "echo" their
values with the date to a csv file so that all would be comma-separated
on the same line.
Is this possible? Any ideas?
.
Relevant Pages
- Re: array problem: space between words
... last_arr_member# FUNCTION to echo the amount of members an array contains ... can be used to append an element to the array. ... Removing my 'echo', and your 'eval', this is the quickest way for bash I can think of by now. ... Yes, I use command substitution in the calling functions, to do things like reverse iterating and array. ... (comp.unix.shell) - Re: safely iterating through potentially empty arrays in bash
... >> not hashes as in bash or ksh). ... array itself is circular linked ... are in zsh. ... $ echo $ ... (comp.unix.shell) - Re: How to map the string to string in array?
... I find the array in the bash only allow the index type to be NUMBER, ... But I have the requirement that to map the string to string, ... # echo $; ... (comp.unix.shell) - Re: Field splitting: Is the default IFS treated differently?
... I've run across another oddity of this sort in bash. ... While fiddling with a script to read a file into an array with a single ... echo $ ... According to the bash man page, command substitution removes trailing ... (comp.unix.shell) - Joining two arrays and then creating a variable
... I'd like to create a variable from an array element from two arrays. ... In my search for answers I found this code for bash that joins two arrays and then started to work with it. ... # so every new element added increases array counter. ... # echo element number, name and surname. ... (comp.unix.shell) |
|