Search Results

Search: Posts Made By: Ryan.
3,376
Posted By Ryan.
I take that as "no."
I take that as "no."
3,376
Posted By Ryan.
Command output string manipulation possible in one line?
This has been bothering me for 3 days.

$> hostname
cepsun64amd

And I just want "cepsun",

I would normally do h=`hostname`; ${h%%64*}

But I am looking for a one-liner just for my own...
3,365
Posted By Ryan.
Use AWK to move matched line back one?
Can somebody help me with this? I'm sure it's a no-brainer if you know awk... but I don't.

Input:

Blah
Blah
Me love you
long time
Blah
Blah

awk magic with 'long time'

==>

Output:...
21,126
Posted By Ryan.
Thanks for all your help and insight, alister. ...
Thanks for all your help and insight, alister.

I just thought I would come on here and explain what I ended up doing.

Problem: Server has too little hard-drive space to perform sort, but plenty...
21,126
Posted By Ryan.
I'm using Ubuntu Jaunty. But unless somebody...
I'm using Ubuntu Jaunty.

But unless somebody can come up with a solution within the next hour I'm just going to write something to manually split and sort it.
21,126
Posted By Ryan.
I totally misunderstood you the first time. ...
I totally misunderstood you the first time.

So, basically try to split the file by each ticker, and then write some simple code to do my own sorting, correct?

Edit: I guess that all could have...
21,126
Posted By Ryan.
Wait. Wow. How am I supposed to "sort...
Wait.

Wow.

How am I supposed to "sort individually"?

If I split the file up, every time two "sorted" files are combined I still need to sort the merged file, and therefore I run into the...
21,126
Posted By Ryan.
This is what happened when I tried to use split: ...
This is what happened when I tried to use split:

split: output file suffixes exhausted

Going to try again with bigger splits.

Current file (example):

>> cat 2009_Trades.csv | head -3
...
21,126
Posted By Ryan.
Oddly the hours aren't zero padded but the...
Oddly the hours aren't zero padded but the minutes and seconds are. (I think it's like [1]?[0-9]:[0-5][0-9]:[0-5][0-9] in Regex-speak.)

I'm going to try to figure out how to split it up and then...
21,126
Posted By Ryan.
Sort broke @ 2am: read failed:...
Sort broke @ 2am:

read failed: /tmp/sortOgLpWg: Input/ouput error

This is a real problem now. Does anybody know of a way to sort a humongous file that won't (likely) break?
21,126
Posted By Ryan.
Sorting problem: Multiple delimiters, multiple keys
Hello

If you wanted to sort a .csv file that was filled with lines like this:

<Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr>

(H : [1, 23], M, S: [0, 59])

by date, does...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 05:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy