Search Results

Search: Posts Made By: puttster
Forum: Web Development 11-27-2010
2,590
Posted By puttster
Passing values in PHP using POST
Lets say that I have a URL that consists of: myserver/something1.php

My second URL is myserver/something2.php

I have a variable called $var inside something1.php and once I submit the website...
3,017
Posted By puttster
Counting characters within a file
Ok say I wanted to count every Y in a data file.
Then set Y as my delimiter so that I can separate my file by taking all the contents that occur BEFORE the first Y and store them in a variable so...
3,673
Posted By puttster
Oh, yeah that makes a whole lot of sense.. thank...
Oh, yeah that makes a whole lot of sense.. thank you!
3,673
Posted By puttster
using sed or gsub to substitute characters!
Is there a way to substitute the URL-encoding references of ( & and ` ) with their actual appearance? for example....
%26 is &
say I want to convert every %26 in my file to &.....


awk...
Forum: Programming 10-30-2010
2,902
Posted By puttster
Thank you very much! you helped me alot!
Thank you very much! you helped me alot!
Forum: Programming 10-30-2010
2,902
Posted By puttster
typedef char* characterptr; characterptr...
typedef char* characterptr;
characterptr *stuff=new characterptr;
for(x=0; x < 2; x++)
{

input >>stuff[x];}

Is that correct so far?

Then to display it,
...
Forum: Programming 10-30-2010
2,902
Posted By puttster
What I am having trouble with right now is that I...
What I am having trouble with right now is that I cannot take multiple lines of single words and dynamically take them from the input file and display it.

However, I can do the easier part which...
Forum: Programming 10-30-2010
2,902
Posted By puttster
ohhhh so you need 2 **'s to reference a double...
ohhhh so you need 2 **'s to reference a double dimensional array?
Forum: Programming 10-30-2010
2,902
Posted By puttster
Allocating data arrays in C++
lets say that I have a two dimensional array:

char myarray[10][10];

and my process of taking in values from an input file is this:

for(i=0;x<2;i++) // 2 is the amount of rows in the array...
1,361
Posted By puttster
Adding semicolons
Lets say I wanted to add a ; before the last 6 characters of my variable how would I do this?
2,429
Posted By puttster
Creating a new line using awk?
Is there a way while using awk to print out lines, to create a new line after every line that is being displayed?
2,242
Posted By puttster
sounds like that would work, thanks alot.
sounds like that would work, thanks alot.
2,242
Posted By puttster
displaying multiple lines using AWk
say I'm doing awk 'NR==534'
Is there a way to display 534 535 536 537?
without appending to a variable? per line? maybe an easier way with a different command?
My first impression was NR==534-537...
Forum: Programming 10-16-2010
3,005
Posted By puttster
Forum: Programming 10-16-2010
1,025
Posted By puttster
1,692
Posted By puttster
makes sense to me thanks
makes sense to me thanks
1,692
Posted By puttster
Taking 3 greped/awked lines of text
Say I used grep and awk for taking text out of a text file...
I now /have 3 lines of text that I want to combine to make 1 line.

What command could I use to do this?
...
display line 1 twice...
5,365
Posted By puttster
Thanks problem solved
Thanks problem solved
5,365
Posted By puttster
Showing the first 4 lines of a file?
Is there a way to show the first 4 lines of a file without using head -4?
In sed would it be sed '1,4d' ?

What if I just wanted to display the 2nd line ONLY?

How could this be done with...
6,080
Posted By puttster
Yeah I'll probably just start a new thread...
Yeah I'll probably just start a new thread tomorrow, going to take a needed break from the frustration :(
6,080
Posted By puttster
Why is it that when I take data and store it in a...
Why is it that when I take data and store it in a variable with grep, that it creates a space after every single piece of data except for the first chunk?
For example,

my output is
400
500
600...
6,080
Posted By puttster
I think the problem I am having is that they are...
I think the problem I am having is that they are tabs :(
6,080
Posted By puttster
I have output such as (SPACEBEFORE->)9 10...
I have output such as

(SPACEBEFORE->)9
10
11

There is a space before the 9 and I cannot figure out how to remove it with sed.

If I do sed s/ /&abc/g

my output should be:
abc9
10
11...
6,080
Posted By puttster
say I wanted to add ABC at the end of every blank...
say I wanted to add ABC at the end of every blank space, why does this not work?

Nevermind I figured out a different way of doing it :P thanks anyways on the adding characters after a blank space.
6,080
Posted By puttster
Is there a way to convert everything to caps...
Is there a way to convert everything to caps after you take it in?
Showing results 1 to 25 of 55

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