Sponsored Content
Top Forums Shell Programming and Scripting Need comma separated processing Post 302395921 by frans on Wednesday 17th of February 2010 09:42:35 AM
Old 02-17-2010
Code:
sed -e 's/ /,/g' -e 's/,\&,/ \& /g' file



---------- Post updated at 15:42 ---------- Previous update was at 15:40 ----------

Code:
sed -e 's/ /,/g' -e 's/,\&,/ \& /g' -e 's/^/DPC,/' file

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

parsing comma separated file

Hi, I have a file with th elist of patches separated by comma, like below: patch1, patch 2, patch 3................ t\The number of patches is not known as it changes every time. I need assistance in writing a routine such as it will take patch1 as first variable and performs the... (4 Replies)
Discussion started by: avikaljain
4 Replies

2. Shell Programming and Scripting

Extract comma separated value in unix

Hello All Can anyone please guide me how to solve the issue In the below code I am getting concat of two value in result variable with comma separated result=`sqlplus -s / <<EOF set pages 0 feed off; set feedback off; spool abc.txt select... (4 Replies)
Discussion started by: Pratik4891
4 Replies

3. Shell Programming and Scripting

Comma separated file

Hi all, I have the following files types: FileA: 100, 23, 33, FileB: 22, 45, 78, and i want to make File C: 100,22 23,45 33,78 any nice suggestions for making it easy. (3 Replies)
Discussion started by: hen1610
3 Replies

4. Shell Programming and Scripting

Need Help - comma inside double quote in comma separated csv,

Hello there, I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process. Input in the csv file is , 1,234,"abc,12,gh","GH234TY",34 I need output like below,... (8 Replies)
Discussion started by: Uttam Maji
8 Replies

5. UNIX for Dummies Questions & Answers

[solved] Comma separated values to space separated

Hi, I have a large number of files which are written as csv (comma-separated values). Does anyone know of simple sed/awk command do achieve this? Thanks! ---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ---------- Guess I asked this too soon. Found the... (0 Replies)
Discussion started by: lost.identity
0 Replies

6. Shell Programming and Scripting

Needs help in parsing comma separated values

hello experts, i am retrieving values in variables jobKey and jobName within my shell script. these values are returned to me within braces and i am using following command to remove those braces: jobKeys=`echo $jobKeys | sed 's:^.\(.*\).$:\1:'` jobNames=`echo $jobNames | sed... (1 Reply)
Discussion started by: avikaljain
1 Replies

7. Shell Programming and Scripting

Need comma separated output

Hi, I am having the file with server names & its corresponding process, i need your help how to convert into comma separated output between server & app #cat apps.txt Server1 oracle was Server2 http webadmin Server3 tsm db2 My requirement is like below. Server1,oracle/was... (5 Replies)
Discussion started by: ksgnathan
5 Replies

8. Shell Programming and Scripting

awk to parse comma separated field and removing comma in between number and double quotes

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

9. UNIX for Beginners Questions & Answers

How to extract fields from a CSV i.e comma separated where some of the fields having comma as value?

can anyone help me!!!! How to I parse the CSV file file name : abc.csv (csv file) The above file containing data like abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies
OPEN-AXIOM(1)					     The open scientific computation platform					     OPEN-AXIOM(1)

NAME
open-axiom - open source platform for symbolic, algebraic, and numerical computations SYNOPSIS
open-axiom [options] [file] DESCRIPTION
General options: --help Print this information and exit. --version Print OpenAxiom version and exit. --script Execute the file argument as a Spad script. If specified, this option should be last before file argument. --compile Invoke the compiler on the file argument. If specified, this option should be last before file argument. --server Start the Superman as master process. --no-server Do not start Superman as master process. Superman options: --no-gui Do not start the Graphics or HyperDoc components. --graph Start the Graphics component. This option is meaningful only if OpenAxiom was built with graphics support. --no-graph Do not start the Graphics component. --hyperdoc Start the HyperDoc component. This option is meaningful only if OpenAxiom was built with graphics support. --no-hyperdoc Do not start the HyperDoc component. --execute cmd args execute `cmd' with arguments `args' Compiler options: --optimize=<n> Set compiler optimization level to <n>, a natural number. If invoked without options and without an input file OpenAxiom will start as an interative program with Superman as the master process, the majority of uses. If invoked with a file as single argument, OpenAxiom assumes the file is a Spad script and will attempt to execute it as such. Submit bug report to open-axiom-bugs@lists.sf.net open-axiom 1.4.1+svn~2626 May 2012 OPEN-AXIOM(1)
All times are GMT -4. The time now is 12:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy