Search Results

Search: Posts Made By: grotesque
Forum: Programming 04-20-2008
1,522
Posted By grotesque
Replacing line with a new file in a file
Hi,

I have a txt file which contains:

Apple is red.
Orange is orange.
Banana is yellow.
Strawberry is red.

-eof-


How do I go about replacing "Banana is yellow" with "Cherry is red"?...
Forum: Programming 04-20-2008
3,344
Posted By grotesque
hi, you can make use of stringtokenizer to...
hi,

you can make use of stringtokenizer to help extract the values into "tokens". by default the delimiter to extract the value is "space" and also in this case all your values are seperated by...
Forum: Programming 02-15-2008
1
4,249
Posted By grotesque
C Smtp
how do you send a ".\n" in a smtp client?

>354 Send message, end with <CRLF>.<CRLF>
>.
>

i have already issued a "./n" but it doesnt work.

please help. thanks.
1,457
Posted By grotesque
help me out here! :(
help me out here! :(
1,457
Posted By grotesque
mac unix
hi,

i'm running mac 10.5, and i have a file eg. program after i compiled on the terminal using this command;

cc -o program program.c

however, i'm unable to see the process hierachy for that...
2,158
Posted By grotesque
extracting integer from data
Hi people,

I've encountered a problem. I have a data file like:

asd:$123:2
zxc:$456:4

But when I want to extract "$123" and get the number with this command:

echo $123 | cut -c 1-10
...
Showing results 1 to 6 of 6

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