Sponsored Content
Top Forums UNIX for Beginners Questions & Answers BASH SCRIPT - Insert date into cells in cvs file Post 302999248 by Aia on Thursday 15th of June 2017 10:56:16 PM
Old 06-15-2017
You haven't shown any example of output or what you have tried on your own, so I give you this, based on your explanation.

Code:
perl -MPOSIX -ple '$_ = join ",",(strftime("%m/%d/%Y", localtime)) x 3 if $.==2' orders.csv


Last edited by Aia; 06-16-2017 at 12:02 AM.. Reason: added the orders.csv
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script grabbing cvs file .....

how do I write a script to checkout a file in cvs and cat the file into a file in my home directory Commands are cd /home/smr/sandbox cvsroot choose option 1 cvs co filename cat filename > /home/smr/newfilename Thank you! (4 Replies)
Discussion started by: llsmr777
4 Replies

2. Shell Programming and Scripting

How do I insert a line in the middle of a file in BASH?

I have tried sed '/6/a text_to_inserted' file > newfile but this inserts test_to_insert at random places in file and i want it in specific location, which is line 6. can anyone help.... (6 Replies)
Discussion started by: phenom
6 Replies

3. UNIX for Dummies Questions & Answers

Bash script to insert data into an html table

hi, I need to create a bash shell script which picks up data from a text file and in the output file puts it into an html made table. I have to use sed and awk utilties to do this the input text file will contain data in the format: job name para1 para2 para3 para4 para4 1 ... (1 Reply)
Discussion started by: intern123
1 Replies

4. Shell Programming and Scripting

How to insert variable date (monthly) from SQL script

Hi Guys, Can someone please help me on adding/inserting a variable to an sql scipt? Basically I want to generate data on monthly (i.e. July 01, 2011 to July 31, 2011) basis. As shown below.. set head off; set linesize 300; set pagesize 200; spool /opt/oracle/temp/output.txt select... (1 Reply)
Discussion started by: pinpe
1 Replies

5. Shell Programming and Scripting

bash script to find date based on search string for continuesly updating file

Hi All, I am very new to UNIX and I have tried this for a longtime now and unable to crack it.... There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day..... eg: String is "work started" The log entry is as below: ... (1 Reply)
Discussion started by: Nithz
1 Replies

6. Shell Programming and Scripting

bash script search file and insert character when match found

Hi I need a bash script that can search through a text file and when it finds 'FSS1206' I need to put a Letter F 100 spaces after the second instance of FSS1206 The format is the same throughout the file I need to repeat this on every time it finds the second 'FSS1206' in the file I have... (0 Replies)
Discussion started by: firefox2k2
0 Replies

7. Shell Programming and Scripting

Bash script to count and insert

Hi not sure if this is possible but I need some help with a bash script, I have a text file and on the first line that starts with 7150230 I need it to put a 1 at position 79 and a 2 at position 88, this is where it gets complicated, on the next line it finds that starts with 7150230 I then need it... (8 Replies)
Discussion started by: firefox2k2
8 Replies

8. Shell Programming and Scripting

Help with insert a value equation in bash script

HI All, I have a script in bash that i want that script will perform action When the size of a particular folder exceeds the 80%. Here is an example of script that result is exactly 80% : #!/bin/bash CHECK=$(df -h /var/log/syslog | grep '80%' | xargs echo | cut -d' ' -f5) if ];... (1 Reply)
Discussion started by: Aviel.shani
1 Replies

9. Shell Programming and Scripting

Insert values into a file 0 as per the date wise

Hi The file contains 12 months of date and less than 12 months of data I want to display if date filed less than 12 months of data I want to insert a value amount 1 to amount4 0 and dates as well. 12345|Date|cntry|amount1|amount2|amount3|amoun4... (2 Replies)
Discussion started by: jagu
2 Replies

10. UNIX for Beginners Questions & Answers

Bash: Insert in a variable a file

hi all i have a problem in the bash shell. i'd like insert in a variable a file for example : i have a file datafine.log in this file there is : 17/JUN/2019 i want to insert the value of datafine.log in a variable. Regards Frncesco edit by bakunin: please use CODE-tags for your data... (2 Replies)
Discussion started by: Francesco_IT
2 Replies
CVS-AUTORELEASEDEB(1)					User Contributed Perl Documentation				     CVS-AUTORELEASEDEB(1)

NAME
cvs-autoreleasedeb - Automatic Release of debian packages from CVS DESCRIPTION
This script generates and uploads the debian package for cvs modules managed by cvs-buildpackage. cvs-autoreleasedeb will maintain a state file of all the packages you want to be automatically published, and every time you commit the debian/changelog file of your package, changing the debian version to a greater value, it will be published. All the parameters to the script are configured in the conffile. There is no command-line switch. See cvs-autoreleasedeb.conf(5) for more information. USING
There are two ways of using this script: 1) Run as user cvs-autoreleasedeb in cron. This is very useful for software houses that want to have the "nightily build" version of the software published automatically. In this case, the config file will be "/etc/cvs-autoreleasedeb.conf" and it will use /var/lib/cvs-autoreleasedeb/ as scratch dir. NOTE: edit /etc/default/cvs-autoreleasedeb to control this behavior NOTE 2: all output will be thrown in /var/log/cvs-autoreleasedeb/run.log 2) Run as yourself, it will automatizate the work you will have if you have your packages in CVS. In this case, the config file will be $HOME/.cvs-autoreleasedeb/conf and the scratch dir will be $HOME/.cvs-autoreleasedeb. cvs-autoreleasedeb will not create defaults, you must have the configuration file created before running cvs-autoreleasedeb. See cvs-autoreleasedeb.conf(5). TODO
- Use a snapshot of the time of the commit in the changelog to checkout the source - Localize the messages. - Work with other than all lowercase in conffile. - Use a better format for conffile. _EXIT CODES _exit codes: 0 = Clean _exit 1 = Config file not found 2 = No packages in config file 3 = Couldn't open the state file 4 = Couldn't open the state file for writing 5 = Couldn't determine architecture SEE ALSO
cvs-buildpackage(1), cvs(1), cvs-autoreleasedeb.conf(5), dupload(1) AUTHOR
This manual page was written by Daniel Ruoso <daniel@ruoso.com>, for the Debian GNU/Linux system. perl v5.8.7 2006-08-04 CVS-AUTORELEASEDEB(1)
All times are GMT -4. The time now is 01:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy