Hi all
Requirement:
I need to generate a comma seperated file(.csv)
I have one functions which returns me some values in a array. Now i want to add comma after every value that gets stored in the array.
E.g:
Expected:
likewise
thanks in advance
Ganesh
Moderator's Comments:
Please use code tags next time for your code and data.
Last edited by zaxxon; 09-11-2012 at 10:13 AM..
Reason: code tags
hello
A small shell scripting help..
I have a file say with 5 lines of text (text file).
At the end of everyline I need to add a comma at the end of the file.
Thanks, ST2000 (4 Replies)
I have a file like this
101223345
23232344a
1312a3441
903821224
143434324
101223345
23232344a
1312a3441
I want to insert comma in 5 digit.
it should be like
10122,3345
23232,344a
how can I do this ?
thanks
Alice... (3 Replies)
I'm attempting to create a KSH array out of a string like this: ",,,value1,value2,,"
I have created the array but I only get two elements, one for value1 and one for value2.
I have ended up with something like this but I don't like it:
set -A JUNK
xx=0
for i in $(print ",,,value1,value2,,"... (3 Replies)
Hello,
I have been stuck on this aspect of loading a comma delimited file into an array. I thought i had the syntax right, but my commands are not working the way I want them to. Basically my cut command is splitting the file up by spaces and commas. I want the cut command to ignore white spaces.... (2 Replies)
Srr for being pain her
let say i have a data in a file like this
1@1000
2@2000
4@4000
5@7770
6@8998
7@80008
i am a newbie in Unix
i need to add a comma to integer using AWK function. for example, 1,000 or 80,008
how can i do that
ps. i'm using bash shell (1 Reply)
I am in the process of creating a BASH shell scripts for a project at work. So the scenario is as such:
I have a file with each line entry separated by ':'
... (3 Replies)
hi,
i have a variable which contains some file names separated by comma. example
FNAME="abc.txt,def.txt,ghi.txt"
i want to extract each filename and store it into an array and also count the number of files in the array.
file=abc.txt
file=def.txt
file=ghi.txt
i thought of using the... (8 Replies)
Hi Experts,
Please support
I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6.
... (3 Replies)
Discussion started by: as7951
3 Replies
LEARN ABOUT DEBIAN
abook
ABOOK(1) General Commands Manual ABOOK(1)NAME
abook - text-based address book program
SYNOPSIS
abook [ OPTION ]
DESCRIPTION
This manual page documents briefly the abook program. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page.
abook is a text-based address book program. It contains Name, Email, Address and various Phone fields. It is designed for use with mutt,
but can be equally useful on its own.
OPTIONS -h --help
Show usage.
-C --config <filename>
Use an alternative configuration file (default is $HOME/.abook/abookrc).
--datafile <filename>
Use an alternative addressbook file (default is $HOME/.abook/addressbook).
--mutt-query <string>
Make a query for mutt (search the addressbook for <string>).
The --datafile option, as documented above, may be used BEFORE this option to search a different addressbook file.
--convert [ --informat <inputformat> ] [ --infile <inputfile> ] [ --outformat <outputformat> ] [ --outfile <outputfile> ]
Converts <inputfile> in <inputformat> to <outputfile> in <outputformat> (defaults are abook, stdin, text and stdout).
The following inputformats are supported:
- abook abook native format
- ldif ldif / Netscape addressbook
- mutt mutt alias
- pine pine addressbook
- csv comma separated values
- palmcsv Palm comma separated values
The following outputformats are supported:
- abook abook native format
- ldif ldif / Netscape addressbook (.4ld)
- mutt mutt alias
- html html document
- pine pine addressbook
- gcrd GnomeCard (VCard) addressbook
- csv comma separated values
- palmcsv Palm comma separated values
- elm elm alias
- text plain text
- spruce Spruce address book
- wl Wanderlust address book
- bsdcal BSD calendar
--add-email
Read an e-mail message from stdin and add the sender to the addressbook.
--add-email-quiet
Same as --add-email but doesn't confirm adding.
--formats
List available formats.
COMMANDS DURING USE
Press '?' during use to get a list of commands.
SEE ALSO mutt(1), abookrc(5)AUTHOR
This manual page was written by Alan Ford <alan@whirlnet.co.uk>, for the Debian GNU/Linux system (but may be used by others).
abook was written by Jaakko Heinonen <jheinonen@users.sourceforge.net>
2006-09-06 ABOOK(1)