Sponsored Content
Top Forums Shell Programming and Scripting How to add a new column in a csv file? Post 302835955 by RavinderSingh13 on Tuesday 23rd of July 2013 10:22:26 AM
Old 07-23-2013
Hello,

Could you please give some code example for same? it will be helpful for us.



Thanks,
R. Singh
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

add a additional column in csv file

Thanks for allwoing me to discuss in this forum GIVEN BELOW A simple shell script which will ask for the user to input a PC name and it will produce the output in CSV with the PC name #! /bin/bash read -p "enter the PC name :" pc #checking for netstat report netstat -pant |sed '1,2d'... (1 Reply)
Discussion started by: ayyappancheta
1 Replies

2. Shell Programming and Scripting

Appending = in particular column in csv file

Hi, I have a requirement to append = in particular row in csv file. Data in csv is as follow: row1,a,a,a row2,b,b,b row3,c,c,c row4,d,d,d csv should be modified at row3 and no. of columns are not fixed but rows are. output should be as: row1,a,a,a row2,b,b,b row3,=c,=c,=c... (2 Replies)
Discussion started by: Divya1987
2 Replies

3. Shell Programming and Scripting

Pick the column value based on another column from .csv file

My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated. Main imp point, in my .csv file, third column is having price value with comma (1,20,300), it has... (2 Replies)
Discussion started by: Ganesh L
2 Replies

4. Shell Programming and Scripting

Remove the values from a certain column without deleting the Column name in a .CSV file

(14 Replies)
Discussion started by: dhruuv369
14 Replies

5. Shell Programming and Scripting

First 4 Characters of a column in CSV file

Hi All, I have a CSV file in the below format: Id,Text,File "123","This is unix file","Unix" "121","This is C file","C" Want to have output in below format: Id,Text,File "123","This","Unix" "121","This","C" File is , separator with each fields in quotes. Some fields are having... (4 Replies)
Discussion started by: Sufer
4 Replies

6. Shell Programming and Scripting

Compare 2 files of csv file and match column data and create a new csv file of them

Hi, I am newbie in shell script. I need your help to solve my problem. Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file. File1: SourceFile,DateTimeOriginal /home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies

7. Shell Programming and Scripting

Get maximum per column from CSV file, based on date column

Hello everyone, I am using ksh on Solaris 10 and I'm gathering data in a CSV file that looks like this: 20170628-23:25:01,1,0,0,1,1,1,1,55,55,1 20170628-23:30:01,1,0,0,1,1,1,1,56,56,1 20170628-23:35:00,1,0,0,1,1,2,1,57,57,2 20170628-23:40:00,1,0,0,1,1,1,1,58,58,2... (6 Replies)
Discussion started by: ejianu
6 Replies

8. Shell Programming and Scripting

Add current time stamp column in existing csv file

Hi , I want to add a new column 'current_time stamp' in my existing csv file with current time stamp for all the records.I tried something this but this is printing 0 with date & time and printed date one line above header.Please help awk -F "," 'BEGIN{ OFS="," } {$6=system("date... (5 Replies)
Discussion started by: netdbaind
5 Replies

9. UNIX for Beginners Questions & Answers

Compare every column from one csv file to another csv file

1.csv contains following column- Empid code loc port 101 A xy 01 102 B zx 78 103 A cg 12 104 G xy 78 2.csv contains follwing data- Empid code loc port 101 A gf 01 102 B zx 78 103 C cg 32 104 ... (1 Reply)
Discussion started by: rishabh
1 Replies
THREADSCOPE(1)						      General Commands Manual						    THREADSCOPE(1)

NAME
threadscope - a graphical thread profiler for Haskell GHC programs SYNOPSIS
threadscope [program.eventlog] DESCRIPTION
Threadscope is a graphical thread profiler for Haskell programs. It parses and displays the content of .eventlog files emitted by the GHC 6.12.1 and later runtimes, showing a timeline of spark creation, spark-to-thread promotions and garbage collections. This helps debugging the parallel performance of Haskell programs, making easier to check that work is well balanced across the available processors and spot performance issues relating to garbage collection or poor load balancing. ARGUMENTS
threadscope takes the name of the GHC RTS event-log file to process as its single argument. If no filename is given, threadscope starts with an empty workspace, where any event-log file can be loaded by means of the GUI file browser facilities. USAGE
In order for threadscope to be useful, you have to compile your Haskell program to use GHC's threaded run-time and also to create runtime profile logs. This can be accomplished with the following command line options to ghc(1) $ ghc -threaded -eventlog --make Foo.hs -o foo Once the program is built, execute it using the multithreaded run-time, specifying the number of HECs (Haskell Execution Contexts) to use in the usual manner, but also requesting the creation of an event log. For example, to use two HECs and create an event log you would use $ foo +RTS -N2 -ls -RTS ... Once the program runs to completion, a file named foo.eventlog is produced. You can start threadscope from the shell prompt passing the event-log filename as the single argument, or you can start threadscope from the desktop menus and use its file browsing capabilities to find and open it. SEE ALSO
ghc(1) AUTHOR
threadscope was written by Simon Marlow <marlowsd@gmail.com> Donnie Jones <donnie@darthik.com> Satnam Singh <s.singh@ieee.org> This manual page was written by Ernesto Hernandez-Novich (USB) <emhn@usb.ve> for the Debian project (and may be used by others). June 28, 2010 THREADSCOPE(1)
All times are GMT -4. The time now is 03:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy