04-21-2013
Agreed! I'm trying to pick up C by myself, not for contest or homework. Thank unix.com, I do not need to go back to school, maybe I'd better do it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
Discussion started by: samupnl
1 Replies
2. HP-UX
Hi Experts,
I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line.
File is comma (,) seperated.
Eg:
ID,Client ,SNo,Rank
37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies
3. Shell Programming and Scripting
Hello,
I have a file as such:
FFFFFFF6C000000 225280 225240 - - rwxs-
FFFFFFFF79C00000 3240 3240 - - rwxs-
FFFFFFFF7A000000 4096 4096 - - rwxs-
FFFFFFFF7A400000 64 64 ... (3 Replies)
Discussion started by: PointyWombat
3 Replies
4. Solaris
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies
5. Shell Programming and Scripting
hi,
Is it possible to print a particular character n number of times in a line?
for example.
i am print the following line using echo command..
echo "files successfully moved"
i want to count the number of characters that are been displayed. i am doin it using
echo "files... (8 Replies)
Discussion started by: Little
8 Replies
6. Programming
performing this code to read from file and print each character in separate line
works well with ASCII encoded text
void
preprocess_file (FILE *fp)
{
int cc;
for (;;)
{ cc = getc (fp);
if (cc == EOF)
break;
printf ("%c\n", cc);
}
}
int
main(int... (1 Reply)
Discussion started by: khaled79
1 Replies
7. Shell Programming and Scripting
(2 Replies)
Discussion started by: snoman1
2 Replies
8. Shell Programming and Scripting
Hi All,
I have a file testarun.txt contains the below lines and i want to print the lines if the character positions 7-8 matches 01.
201401011111
201401022222
201402013333
201402024444
201403015555
201403026666
201404017777
201404028888
201405019999
201405020000
I am trying the... (4 Replies)
Discussion started by: Arunprasad
4 Replies
9. Shell Programming and Scripting
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Discussion started by: pallvi_mahajan
10 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I need to print the characters in the previous line just before the regular expression match
Please have a look at the input file as attached
I need to match the regular expression ^ with the character of the previous like and also the pin numbers
and the output file should be like... (6 Replies)
Discussion started by: kshitij
6 Replies
LEARN ABOUT DEBIAN
config::model::models::popcon
Config::Model::models::PopCon(3pm) User Contributed Perl Documentation Config::Model::models::PopCon(3pm)
NAME
Config::Model::models::PopCon - Configuration class PopCon
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
Elements
PARTICIPATE
If you don't want to participate in the contest, say "no" and we won't send messages.Optional. Type enum. choice: 'no', 'yes'.
upstream_default: 'no'.
MAILTO - survey e-mail
Specifies the address to e-mail statistics to each week.Optional. Type uniline. upstream_default: 'survey@popcon.debian.org'.
MAILFROM - forged sender email address
MAILFROM is the forged sender email address you want to use in email submitted to the popularity-contest. If this is commented out, no
From: or Sender: lines will be added to the outgoing mail, and it will be your MTA's job to add them. This is usually what you want.
If your MTA is misconfigured or impossible to configure correctly, and it always generates invalid From: and/or Sender: lines, you can
force different results by setting MAILFROM here. This can cause problems with spam bouncers, so most people should leave it commented
out.Optional. Type uniline.
SUBMITURLS - list of urls to submit data to
Space separated list of where to submit popularity-contest reports using http.Optional. Type uniline. upstream_default:
'http://popcon.debian.org/cgi-bin/popcon.cgi'.
USEHTTP
enables http reporting. Set this to 'yes' to enable it.Optional. Type enum. choice: 'no', 'yes'. upstream_default: 'yes'.
HTTP_PROXY
Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy.Optional.
Type uniline.
MY_HOSTID
Secret number that the popularity-contest receiver uses to keep track of your submissions. Whenever you send in a new entry, it overwrites
the last one that had the same HOSTID.
This key was generated automatically so you should normally just leave it alone. Optional. Type uniline.
DAY - day of week
Only run on the given day, to spread the load on the server a bit. 0 is Sunday, 6 is Saturday. Optional. Type integer.
SEE ALSO
o cme
AUTHOR
Dominique Dumont
COPYRIGHT
2010,2011 Dominique Dumont
LICENSE
LGPL2
perl v5.14.2 2012-11-09 Config::Model::models::PopCon(3pm)