User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 455,999 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,835 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 19 of 19
Search took 0.01 seconds.
Posts Made By: sjgriffiths
Forum: Shell Scripting Jul 9th, 2008
Replies: 3
Views: 444
Posted By sjgriffiths
Re: supression script

Thanks mike. Thats great. The only question i have is....
What if i have 3 fields in one file, and 4 in the other, but i only want to supress on one field (which exists in both files if that makes...
Forum: Shell Scripting Jul 8th, 2008
Replies: 3
Views: 444
Posted By sjgriffiths
supression script

Hello. I have 2 files which, and i want to supress one file against another. for example.

File 1 - suplist.txt
hello123
chris635
mike822

I then have another file

File2 - checklist.txt
Forum: *nix Software Jul 8th, 2008
Replies: 1
Views: 376
Posted By sjgriffiths
Create a suppression script

Hello. I have 2 files which, and i want to supress one file against another. for example.

File 1 - suplist.txt
hello123
chris635
mike822

I then have another file

File2 - checklist.txt
Forum: C Jun 5th, 2008
Replies: 1
Views: 266
Posted By sjgriffiths
Parse data

Hello

I have a list of data, which looks something like below
www.clickajob.co.uk%2Fprofiles%2F316%2F6%2F|a/TLT10911641168.google
...
Forum: MySQL May 28th, 2008
Replies: 1
Views: 419
Posted By sjgriffiths
automating querys

Hello

Is there a way i can have a MYSQL query to run automatically at a certain time without me running it myself?
Forum: Shell Scripting May 23rd, 2008
Replies: 2
Views: 531
Posted By sjgriffiths
Variable check

Is there any way to check the first $NUM chars of a variable?

For example if I have a veriable which contains

VAR="LONGMORE LTD"

Can i check the first character begins with L?
Forum: Shell Scripting May 21st, 2008
Replies: 3
Views: 431
Posted By sjgriffiths
Re: Script question

Thanks for the response....sorry i wasnt clear.

I have spaces .... lets say 3, maybe 4

But i want to put different things within in the spaces. So the above would put %42 in every space
Forum: Shell Scripting May 21st, 2008
Replies: 3
Views: 431
Posted By sjgriffiths
Script question

Hello

I have the following in a variable called TEST

echo $TEST
result : STEPHEN LTD

What i want to do is find out whether there are any spaces in my variable name, and if so do the...
Forum: Shell Scripting May 9th, 2008
Replies: 2
Views: 604
Posted By sjgriffiths
Uniq on certain fields

I have the following file

1928282,Stephen LTD,31280938,L34
3128398,Stephen LTD,84327489,L34

I want to uniq on fields 2 & 4, the fields are comma seperated

I cant figure out how to do this....any...
Forum: C Apr 25th, 2008
Replies: 3
Views: 293
Posted By sjgriffiths
Re: Changing string

Ha, fantastic Narue...

One more thing. I dont want to change the ltd if its not the end

eg

If i Had

Ltd Stephen Johnson Ltd
Forum: C Apr 25th, 2008
Replies: 3
Views: 293
Posted By sjgriffiths
Changing string

Hello

I was wondering whether someone could help me with the below

I have a variable called:

char company[50];

I have a string which contains:
Forum: C Apr 14th, 2008
Replies: 6
Views: 273
Posted By sjgriffiths
Re: strtok

ah it is working, except at the end the program is bombing out

for ( size = 0; size < b2b_data_drill_nNoSelect; size++ )
{

if (size == 1 )
...
Forum: C Apr 14th, 2008
Replies: 6
Views: 273
Posted By sjgriffiths
Re: strtok

mmmm still an issue as

printf ("Results 2nd:%s\n", pOutData[size] );

Based on the above printf, i cannot just do a simple strcpy into temp, due to size being included can i?
Forum: C Apr 14th, 2008
Replies: 6
Views: 273
Posted By sjgriffiths
Re: strtok

Thanks for the reply

The issue i have is i cannot change pOutData due to it being part of some software we are linking too. So i have to make something work around it...any ideas?

Im really stuck...
Forum: C Apr 14th, 2008
Replies: 6
Views: 273
Posted By sjgriffiths
strtok

Hello

char **pOutData; /* Output results */
char *ptoken

I have a pointer which contains the following
hdjhasdjkhasd;stephenjohnson;647823463;dhasdjhaj

I want to work through...
Forum: C Mar 25th, 2008
Replies: 2
Views: 464
Posted By sjgriffiths
strtok

hello

I have the following

while(fgets(b2b_rates_address,1000,in_fp) != NULL )
{
strcpy(rates_details[j].ig1, strtok(b2b_rates_address,","));
printf("rates_details[j].ig7 =...
Forum: C Mar 20th, 2008
Replies: 1
Views: 258
Posted By sjgriffiths
CHar * variable

hello

i have the following

char *b2b_data_Out[1]={"0"};

The number "0" can change. I have a loop which goes round, and i have an integer value which i am going to use to change the above "0" into...
Forum: C Mar 19th, 2008
Replies: 1
Views: 273
Posted By sjgriffiths
Accessing a pointer array

Hello

I have the following pointer

char **pOutData;

This contains an array of strings.

How do i printf each element in of pOutData
Forum: C Mar 6th, 2008
Replies: 2
Views: 770
Posted By sjgriffiths
fopen windows file

hello

I am trying to open a file which exists on my local PC using fopen

the file is located in
c:\B2B Data\files and is called file.txt

When i put the above into a variable called filename, i...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 9:51 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC