Programming :: Converting Date Format In A Comma Separated Field?

Apr 9, 2010

I am in the process of learning some scripting, however I am running into a roadblock in specifying a certain time format in the array. Ideally I would like to use Here are the lines of text that I am interrogating:

1123,3/25/2010,00:14 Thu,33229
1124,3/26/2010,13:30 Fri,33230
1125,3/27/2010,04:49 Sat,33231

[code]...

View 2 Replies


ADVERTISEMENT

General :: Randomize The Comma Separated String In Shell?

Oct 10, 2010

I wanted to randomize the comma separated string.String like "test1,test34,test5,test6".And it would be displayed differently when I ran each time.

Expected output like "test5,test6,test1,test34".

View 13 Replies View Related

Programming :: Converting YYYYMMDD To Date In Bash Script?

Aug 2, 2010

I need to convert strings in the format YYYYMMDD to dates so I can perform date arithmetic.

View 4 Replies View Related

Programming :: Parsing VoIP Call Detail Records (Field Format)

Jan 4, 2010

I am going to parse the Cisco voip CDR(Call Detail Records), please tell me the field format of the CDR files.

View 1 Replies View Related

Programming :: Converting Epoch In A File Name To Human Readable Date/time?

May 5, 2011

I have log files that everyday are downloaded from my webserver in the format: Code: samplesite.com.xxxxxxxxxxx.gz xxxxxxxxxx is a 10 digit epoch time. I am trying to figure out a way in batch to:

1. find all of exisiting files containing the pattern (after the first run it will only be one a day)
2. Isolate the epoch string
3. convert the epoch string to human readable date/time
4. rename the original file as samplesite.com.mmddYYYY.gz

View 2 Replies View Related

Programming :: Awk - Print A Field When Field Position Is Unknown ?

Mar 28, 2010

I'm trying to display fields from flat files where the first 8 fields are always the same. Fields 9 - n are varied but will contain specific patterns I'm after. I'm using this so far because "mySearch" is on each line I want to examine.

Code:

How would you pattern match and include 2 additional fields above field $9 but change field position from line to line?

View 12 Replies View Related

Ubuntu :: Format Two Harddrives - Put Them Together Or Install Separated Systems On Each One

Oct 13, 2010

I have two harddrives. I will install on the first one ubuntu and on the other one opensuse or I will even put them together. I dont know yet.

Has somebody experiences with booting two harddrives, how can I choose between them? And when I delete one with gparted, will the free memory be automatically placed to the not deleted harddrive?

View 4 Replies View Related

Ubuntu Multimedia :: Converting Any Video Format To 3gp Format?

Jul 21, 2011

converting videos to 3gp format.

i have installed transmaggedon software but it fails to convert because quicktime muxer plugin is not installed.

This plugin is not available in the repositories.

How can i get this video converter to work or what else can i do to be able to convert videos to 3gp format?

View 2 Replies View Related

Programming :: Awk Printing From Nth Field To Last Field

Jan 8, 2010

How can print the, let's say 5nd field to the last field of every record (let's say we have 10 fields)?

I mean: I cant avoid to have to do:

print '{$5 $6 $7 $8 $9 $10}'

View 2 Replies View Related

Programming :: Php - Get A Return From A Field Within A Field?

Apr 27, 2009

I am creating a game with random variables. In the game I have created a dialogue exchange to players. I have set up a table with various returns and I inserted {$fields} to represent various random variables. When I call on the requested fields, I only see the field text and my field names. Am I supposed to parse something and call it back another way?

ie: myfield is: "You have won {$random1} silver! <br />{$wi['gender'] majesty rewards you well." the code I am using to call that field is:

View 11 Replies View Related

Programming :: What Date Format DOES Work With "touch -d"?

Aug 2, 2010

I'm hardly keen on using (strictly, only or just) -t, --date=, -m -t, -c -m or -a -t, for all of which I'm clued in to their respective working date syntaxes, but if I must, I will. Frankly -d still boggles. I'd like to think there IS a correct format or formats, else why would they carry it forward in a coreutil command from (whenever it was first written) to the latest updates for the several distros?

Or is it so obvious I can't see the forest for the smell of the trees?

View 2 Replies View Related

Programming :: Get A Field Value Corresponding To Another Field Value?

Dec 14, 2010

i have a file : file.dat with following data

Code:

STORAGE PERCENTAGE FLAG:

/storage_01 64% 0
/storage_02 17% 1
/storage_03 10% 0
/storage_04 50% 1

I need to get the value of PERCENTAGE in a variable for a value of storage passed as variable i have tried the following without success like :

Code:

percentage='awk -vx="$defaultStorage" '{FS=OFS=" "}$1==x{print $2}1' file.dat

View 2 Replies View Related

Programming :: Php Explode By Comma Unless?

Feb 9, 2010

i'm trying to get several strings from a single string, separated by comma's.there are comma's that do not separate strings, however, those enclosed in parantheses.an example would be:vt, word1, (word2, word3)word4

exploding by ',' would result in:
[0]=>vt
[1]=>word1

[code]....

View 2 Replies View Related

Programming :: Pyqt3 List Without Comma ?

Mar 21, 2010

I'm trying to compose a line of numbers each single digit taken from a variable eg: 1010001 each variable digit is either a 0 or 1 made from variable layer1 through 7. I need to add each layer variable to the last to compose the number with no commas or spaces and add it directly after the -p option in the show_command line. I used array and list and the commas mess up the command and inserting "pens" in the show command interpertes it literally instead of the list or array value? The insert should look something like 1000110

Code:

View 1 Replies View Related

Programming :: Compare Files With Fields Separated With ':'?

Jul 16, 2011

Dear expertsI have files like

ABD : 5869 events, relative ratio : 1.173800E-01 , sum of ratios : 1.173800E-01
VBD : 12147 events, relative ratio : 2.429400E-01 , sum of ratios : 3.603200E-01
SDF : 17000 events, relative ratio : 3.400000E-01 , sum of ratios : 7.003200E-01

[code]....

View 3 Replies View Related

Programming :: Add Comma To End Of Lines In Text File?

Aug 21, 2010

I have a plain text file with 360 lines of varying length text. How do I add a comma or other symbol to the end of each line so that I can convert the file to csv format that I can open in a spreadsheet (45 rows, 8 columns). That means each 8 lines of text forms 8 columns, with 45 rows.

View 9 Replies View Related

Programming :: Concatenate The Output To Comma Delimited?

Nov 23, 2010

I would like to create csv output from an ipcalc calculation.

Code:
[me@host scripts]$ ./ipcalc 192.168.30.40/255.255.255.248
Address: 192.168.30.40 11000000.10101000.00011110.00101 000

[code]....

View 1 Replies View Related

Programming :: Extracting Last Section Of File (Separated By Hashes)

Feb 22, 2011

I have a file which looks something like this:

##########
some
text
text also includes empty lines
##########
some
more
text
##########

Basically all sections are separated by 10 hashes and I need to somehow only print all lines in the last section (the "some more text" part in the example above"). I tried all kind of things with sed and awk but I didn't find any way to identify the last "section".

View 8 Replies View Related

Programming :: Merge Multiple Line With Semicolon Separated

Mar 29, 2010

I have a script generating some containing multiple lines. But I want to merge all lines using comma separated.

View 6 Replies View Related

Fedora :: RPM Package - Converting TGZ To TAR.GZ Format

Jul 7, 2011

I am building my first rpm package and I cannot seem to find out how to change an existing .tgz to a .tar.gz as required by the rpm .spec file - I've attempted to search on this, but I can't find the exact command I'm looking for. Specifically, I hope to avoid having to untar the .tgz and simply convert it to the .tar.gz format.

View 4 Replies View Related

Ubuntu Multimedia :: Converting An MPG To A DVD Format?

Jan 28, 2010

How would I go about converting an MPG to a DVD format so I could burn it to a DVD disc and play it on a standard player?

View 2 Replies View Related

Ubuntu Multimedia :: Converting Wmv To Avi Format?

Jul 11, 2010

I have video files in wmv, mov format but my dvd player will not support these formats so I want to convert those to avi format, is there any software for this purpose, How can I install and use that?

View 3 Replies View Related

Ubuntu :: Converting A Swf Video To Another Format?

Mar 25, 2011

converting a swf video to another format please help as all the video converters i have tried to let me open swf files,.

View 9 Replies View Related

Software :: Converting 3GP File To DVD Format (PAL)

May 17, 2010

I'm trying to convert a 3gp (mobile phone video) file to PAL DVD format (which is I believe MPEG2 video and one of a few audio choices, in an MPEG PS container). But while the file plays fine in mplayer and vlc, my efforts to convert it, using either VLC or devede, always seem to result in either the converted video being speed up (noticeably, we're talking twice as fast or so not 5%), or in the audio going mickey-mouse. How can I get the file converted correctly? Bearing in mind it needs to be PAL not NTSC (so a lot of stuff I might find online isn't going to work as-is)

View 1 Replies View Related

Programming :: Join 5 Lines Blocks Comma Delimited?

Nov 26, 2010

I have been searching previous posts but could not find an example which works with my data. I think I might be the spaces in my fields. I have a massive data file and need to join 5 line blocks separated by a comma.

Code:

2
111.222.333.444
host.edu

[code].....

View 8 Replies View Related

Programming :: Using Sed To Remove Line In A Comma-delimited File?

Mar 10, 2009

I have a script that output all my data in to a comma-delimited file separated by ";"

Current Output:

Quote:

"SAP 1117A";10.94.1.7;239.234.1.12;0;0;0;0;0;3;172.31.207.45;""
"";NA;239.192.1.50;0;0;0;0;0;3;172.31.207.61;""
"";NA;239.192.1.50;0;0;0;0;0;3;172.31.207.62;""

[code]...

I would like to remove all lines that have an NA in the second field.

New Output

Quote:

"SAP 1117A";10.94.1.7;239.234.1.12;0;0;0;0;0;3;172.31.207.45;""
....

View 4 Replies View Related

Fedora :: Editing Or Converting MOV Format Frame B?

Dec 31, 2009

Got this compact video camera for Christmas have tried Handbrake, Pitivi, avidemux tried both versions, kino nothing works to date and can't find a way to change the camera settings.

View 6 Replies View Related

General :: Tool - Converting .VHD Imag To RAW Format?

Oct 23, 2010

I need to convert a VHD file (Hyper-V VM) to the Linux raw format. Is there a tool which can do this which is graphical?

View 2 Replies View Related

Ubuntu Multimedia :: Converting MPG File To AVI Format?

Jun 9, 2010

I'm having some problem converting an mpg file to avi. I did it with mencoder. The result was an avi file as I wanted but the image was like stretched vertically. Like this:
(The avi is on the left)
What can I do to convert it without the stretching?

View 1 Replies View Related

Ubuntu :: Converting ISO Format DVDs To DivX

Jul 17, 2010

I've got a couple DVDs in .iso format, and I'd like to convert them to DivX, but I can't see to get anything to load the .iso. I've also tried mounting it and loading it, and it doesn't work.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved