Search Results

Search: Posts Made By: whyte_rhyno
1,558
Posted By whyte_rhyno
Insert text line to specific location CSV
In Perl. ***edited question below***

Hey all, I am teaching myself some simple CSV file manipulation and have become a little stuck. Say I have the following layout in the CSV file:
...
1,283
Posted By whyte_rhyno
Perfecto. I love this forum. :b:
Perfecto.

I love this forum. :b:
1,283
Posted By whyte_rhyno
String Manipulation
I'm making a little game in Perl, and I am trying to remove the first instance of a character in an arbitrary string. For example, if the string is

"cupcakes"and the user enters another string...
2,803
Posted By whyte_rhyno
:eek: drl, you are amazing. Thank you so...
:eek:

drl, you are amazing. Thank you so much.
2,803
Posted By whyte_rhyno
That is certainly one solution I had thought...
That is certainly one solution I had thought about, but it doesn't seem very elegant. Potentially there could be an arbitrary number of boxes (I should have said in the original post, sorry), so I...
2,803
Posted By whyte_rhyno
[BASH] Lining ascii boxes up next to each other
Hello all, I'm writing a simple little game to get myself back into BASH, but am getting unstuck with some formatting. I have the following code:


let len=${#binary}

for ((j=0; j <...
Forum: Programming 03-23-2012
3,613
Posted By whyte_rhyno
D'oh! That would explain the segmentation fault,...
D'oh! That would explain the segmentation fault, then.

Thank you very much for your help!

I had to put some white space in between the files because it was concatenating them together like:...
Forum: Programming 03-23-2012
3,613
Posted By whyte_rhyno
System Calls using C w/BASH
Hello all,

I'm attempting to write a basic application that appends an arbitrary list of txt files to one txt file.

So, for example, if the application is run like so:

appendFileToFile...
25,008
Posted By whyte_rhyno
Let's think methodically what we want to do here:...
Let's think methodically what we want to do here:

I'm assuming I have this data in the csv in this order:

11/12/2001,1234,Paul Stephens

So, I want to sort by number

sort -n

then I...
25,008
Posted By whyte_rhyno
Post your new sort code, might as well have a...
Post your new sort code, might as well have a crack it now you have the answer anyway :P
25,008
Posted By whyte_rhyno
Yeah, I was working on the same problem (a couple...
Yeah, I was working on the same problem (a couple of weeks back now), but it's due in next week so you're probably going to get a lot of traffic soon :P

This particular issue is probably the most...
25,008
Posted By whyte_rhyno
Or, you know, one of the mods just gifts you the...
Or, you know, one of the mods just gifts you the answer :D

Lucky boy.
25,008
Posted By whyte_rhyno
As I said, I know this is an assignment, so if I...
As I said, I know this is an assignment, so if I just give you the answer, we'll both get into trouble and you won't learn anything. I can see you're actually trying (unlike most of our peers), but...
25,008
Posted By whyte_rhyno
I know exactly what assignment this is for so I...
I know exactly what assignment this is for so I won't give away too much.

When you're sorting, think about how you're splitting that sort... You're splitting it by the comma, yet you want to sort...
Forum: What is on Your Mind? 12-29-2011
4,782
Posted By whyte_rhyno
I got the newest gen Kindle for Christmas and I...
I got the newest gen Kindle for Christmas and I have fallen in love with it. I never thought I would see the say I used an e-reader.
7,163
Posted By whyte_rhyno
Disregard the last post I made, I had a stupid...
Disregard the last post I made, I had a stupid error in it. All working now.

Thank you, all.
7,163
Posted By whyte_rhyno
Thanks for the reply. Sadly that regex...
Thanks for the reply.

Sadly that regex allows for multiple minus signs and multiple decimal points.

For example:

------------------9......................3

Is valid with that regex.
...
7,163
Posted By whyte_rhyno
[BASH] Regex for floating point number
Hey again,

I have a basic regex that tests if a number is a float.


Thank you.
12,814
Posted By whyte_rhyno
Haha, I wondered what I had done! Anyway,...
Haha, I wondered what I had done!

Anyway, that " /t" works a treat. Just what I needed.

Thank you very much!:o
12,814
Posted By whyte_rhyno
[BASH] Allow name with spaces (regex)
Hey all,

I have a very simple regular expression that I use when I want to allow only letters with spaces. (I know this regex has a lot of shortcomings, but I'm still trying to learn them)
...
1,167
Posted By whyte_rhyno
it would have something to do with that but used...
it would have something to do with that but used single quotes instead of double. I'm such an idiot.
1,167
Posted By whyte_rhyno
Spaced input causing awk error
Hi all, Just want to say thanks for the great forum you have here, the old topics and posts have helped tremendously. So much so that I have managed to figure a lot out just by researching. However,...
Showing results 1 to 22 of 22

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