Sponsored Content
Top Forums Shell Programming and Scripting script to change the date format in a file Post 302203895 by fpmurphy on Tuesday 10th of June 2008 06:23:23 AM
Old 06-10-2008
Unless you provide an example of one or more of the files, it is difficult for anybody to help you.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help for change date format script

Someone can help me write a script for change date fromat from "Feb 4 18:44:03 2009" to 2009020418 ? from "Mar 17 16:44:03 2009" to 2009031716 ? (4 Replies)
Discussion started by: pccwtest
4 Replies

2. Shell Programming and Scripting

How to change date format in file

Hello! I have a textfile that look like this: "83d1:46:2b";"20091008190000";"Rögle BK - Skellefteå";"Swedish" "d4c:46:21";"20091008190000";"Södertälje - Brynäs";"Swedish" "d4b:46:2";"20091008190000";"HV 71 - Färjestad";"Swedish" "838:46:b";"20091010160000";"Skellefteå - HV 71";"Swedish"... (2 Replies)
Discussion started by: condmaster
2 Replies

3. Shell Programming and Scripting

File date format how to change

Hi All, Below are the unix files taken by the help of ls -lrt -rw-r--r-- 1 kbehera Domain Users 293 Jul 27 13:33 sand.txt -rw-r--r-- 1 kbehera Domain Users 4 Jul 27 13:37 sand1.txt -rw-r--r-- 1 kbehera Domain Users 293 Jul 27 15:30 new_sand.txt -rw-r--r-- 1 kbehera Domain Users 0 Jul 27... (2 Replies)
Discussion started by: krupasindhu18
2 Replies

4. Shell Programming and Scripting

Change date format in shell script

Plz help me To display date in the mm/dd/yyyy. Eg. if date is 28-09-2012 the output of the shell script should be date 09/28/2012. (1 Reply)
Discussion started by: shivasaini
1 Replies

5. Shell Programming and Scripting

How to change the format of the date column in a flat file?

Hi, i have a flat file namely temp.txt with this data below ID|name|contact_date 101|Kay|2013-12-26 102|let|2013-12-26 I need to modify the date data in the flat file into MM/DD/YYYY HH24:MI:SS format let me know the code for this. Thank you! (5 Replies)
Discussion started by: srikanth_sagi
5 Replies

6. Shell Programming and Scripting

Change the date and time format in UNIX script.

Hi, I am extracting a date string from the source file like this : 06/05/2014 16:04:00 I want to change it to 05-JUN-14 04.05.00.000000000 PM I basically store the date in a variable. I got solutions to change date in dd-mmm-yyyy format using tr but I guess it works only with the "date"... (8 Replies)
Discussion started by: Varshha
8 Replies

7. Shell Programming and Scripting

Date format change in UNIX .dat file

Hi, I need help to convert the date format in .DAT file in unix. I want to convert 10@@|SWIFT MT568 Extract@@|Apr 14 2014 5:47:52:563PM@@|Apr 14 2014 4:33:47:663PM@@||##| into 10@@|SWIFT MT568 Extract@@|04/14/2014/ 5:47:52:563PM@@|04/14/2014 4:33:47:663PM@@||##| Appreciate... (18 Replies)
Discussion started by: karthikengox
18 Replies

8. Shell Programming and Scripting

Need to change date format in a csv file using awk

Example: Input csv file 00245DLS,Sitel Ocala,12/31/2014,18:45,1.00,7.00,0.00,0.00 00245DLS,Sitel Ocala,12/31/2014,19:00,-1.00,-1.00,-1.00,-1.00 00245HB,Charlotte,01/01/2015,00:00,-1.00,-1.00,-1.00,0.00 Output csv file 00245DLS,Sitel Ocala,2014/12/31,18:45,1.00,7.00,0.00,0.00 00245DLS,Sitel... (8 Replies)
Discussion started by: adit
8 Replies

9. Shell Programming and Scripting

Date format change in a csv file

Hi, We have csv file where date is coming in MM/DD/YYYY HH:MM:SS (06/23/2015 20:59:12) in multiple places But we need to change the date format to DD/Mon/YYYY HH:MM:SS (23/Jul/2015 20:59:12) using shell script. Please let us know how can we achieve the same. (16 Replies)
Discussion started by: dholea
16 Replies

10. UNIX for Beginners Questions & Answers

Change date format in a file.

Hi all, I have a file as below, i would like the change the format of the time from "11/7/2019 20:12" to "2019-07-11 20:12:00" in the last coloumn. any awk solution on this. Input: 2,0,695016,1961612,497212,5800804,0,0,161,33,7605,12226,23,10,66,0,0,34,11/7/2019 20:10... (4 Replies)
Discussion started by: Raghuram717
4 Replies
MKIMAGE(1)						      General Commands Manual							MKIMAGE(1)

NAME
mkimage - Create an ISO image from jigdo files SYNOPSIS
mkimage -j igdo -t emplate [options]... mkimage -t emplate -z [options]... mkimage -f d5-list -t emplate -M issing-list [options]... DESCRIPTION
mkimage knows how to parse a jigdo template file, commonly used when creating Debian CDs and DVDs. It can be used to actually convert a template file and associated files into an ISO image (hence the name mkimage), or with some command line options it will output useful information about the template file instead. -t template file The jigdo .template file is the most important thing that mkimage needs, and must be specified for all operations. -j jigdo file The jigdo .jigdo file will normally acompany the .template file. To rebuild the image you must specify at least one of the jigdo file and an MD5 file (-f). -f MD5 file A file listing files available locally and their MD5 sums, in the same format as used by genisoimage: MD5sum File size Path 32 chars 12 chars to end of line The MD5sum must be written in standard hexadecimal notation, the file size must list the size of the file in bytes, and the path must list the absolute path to the file. For example: 00006dcd58ff0756c36d2efae21be376 14736 /mirror/debian/file1 000635c69b254a1be8badcec3a8d05c1 211822 /mirror/debian/file2 00083436a3899a09633fc1026ef1e66e 22762 /mirror/debian/file3 To rebuild an image you must specify at least one of the MD5 file and a jigdo file (-j). -m item=path Used in conjunction with a jigdo file; specify where mkimage should look on the local filesystem to find the files it needs to make an image. (e.g. "Debian=/mirror/debian"). -M missing file If you're not sure if you have all the files needs to create an image, specify both the jigdo file and an MD5 file along with the template file and -M <file>. mkimage will check to see that all the files are available instead of building the image. Any files that are missing will be listed in the file specified here. See jigit for usage examples. -v Make mkimage more verbose. Additional -v arguments will make it more verbose again. Default level is 0 (almost no output). 1 will print progress in % while the image is being created; 2 will list every file and data block that is appended to the image. -l logfile mkimage will normally write to stderr when it reports progress. Specify a logfile (or /dev/null) if you want it elsewhere. -O Skip checking the validity of specified jigdo files. mkimage will normally check for the "JigsawDownload" header as a sanity check, but some very old jigdo files produced by Debian pre-dated the addition of this header. -o outfile mkimage will normally write the ISO image to stdout, ready for piping into cdrecord or to iso-image.pl. Specify an output filename if you want it written to disk instead. -q mkimage will normally check the MD5 sum of every file it reads and writes, and will fail if it finds any mismatches. Specify -q to tell it not to. This will normally run more quickly, but can leave you with a broken image so is POTENTIALLY DANGEROUS. Use with care! -s start offset Rather than start at the beginning of the image, skip to the specified offset and start output there. Probably only useful in iso- image.pl when resuming a download. Specifying a non-zero offset also implies -q, as it's difficult to check MD5 sums when you're not checking the whole image. -e end offset Rather than end at the end of the image, stop at the specified offset. Probably only useful in iso-image.pl when resuming a download. Specifying an end offset also implies -q, as it's difficult to check MD5 sums when you're not checking the whole image. -z Simply parse the template file and print the size of the image that would be generated, in bytes. Only needs the template file to be specified, any other arguments will ignored. EXAMPLES
mkimage -f MD5 -j test.jigdo -t test.template -M missing Read in the files MD5, test.jigdo and test.template and check if all the needed files are available. If any are missing, list them in missing. mkimage -z -t test.template Find out how big the ISO image would be from expanding test.template. mkimage -v -f MD5 -t test.template -o test.iso Build the iso image in test.iso, using files listed in MD5 to fill in what's needed by the template file test.template. Show progress as the image is built. SEE ALSO
jigdo-file(1), jigit(1), jigsum(1) and jigdump(1). COPYRIGHT
Copyright 2004 Steve McIntyre (steve@einval.com) mkimage may be copied under the terms and conditions of version 2 of the GNU General Public License, as published by the Free Software Foundation (Cambridge, MA, USA). AUTHOR
Written by Steve McIntyre (steve@einval.com) Jigit jigdo tools September 2004 MKIMAGE(1)
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy