Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Adding new column data in csv from UNIX

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago
archana25 archana25 is offline
Registered User
 
Join Date: Jul 2017
Last Activity: 19 July 2017, 5:50 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Adding new column data in csv from UNIX

Adding new column data in csv from UNIX
Hi I need to add new column data daily to existing csv file. Please assist


Code:
7/11 7/10 7/9 7/8
space 10 GB 20 GB

I was able to generate current day's data in csv but unable to add the previous 30 days data to the same csv

Moderator's Comments:
Adding new column data in csv from UNIX Please use code tags, thank you

Last edited by jim mcnamara; 1 Week Ago at 11:31 PM..
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 24 July 2017, 9:22 PM EDT
Location: NM
Posts: 11,118
Thanks: 549
Thanked 1,075 Times in 997 Posts
Please give us expected output. It is not obvious how 4 dates relates to the word space followed by 4 values or two two-word values:

Code:
1. 10
2. GB
3. 20 
4. GB

Is your csv space delimited, what is the field delimiter?
Sponsored Links
    #3  
Old Unix and Linux 1 Week Ago
archana25 archana25 is offline
Registered User
 
Join Date: Jul 2017
Last Activity: 19 July 2017, 5:50 PM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Its the csv delimited

---------- Post updated at 08:38 AM ---------- Previous update was at 08:37 AM ----------

Last edited by archana25; 1 Week Ago at 08:42 AM.. Reason: wrong format
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX help adding data to end of a line with a variable req62861 UNIX for Beginners Questions & Answers 3 04-06-2017 10:27 AM
Des/awk for change format and adding integers in a column of data? Twinklefingers UNIX for Dummies Questions & Answers 3 09-23-2013 03:12 PM
Compare 2 files and match column data and align data from 3 column asnandhakumar Shell Programming and Scripting 5 10-16-2012 09:58 AM
Extract data based on match against one column data from a long list data patrick87 Shell Programming and Scripting 12 11-17-2009 03:27 AM



All times are GMT -4. The time now is 02:39 AM.