Why & How C in Unix


 
Thread Tools Search this Thread
Top Forums Programming Why & How C in Unix
# 1  
Old 04-19-2010
Why & How C in Unix

Hi,

I have been using shell scripts and other unix commands for my daily file and other operations onto the unix box.

I have never written C or any other programming lanugae, But now I want write programs in C, but I am not able to co-relate with the work,Can you please help me to undersntad what kind of advaced excerises I can do and relate to my work.
Thanks in advace Smilie Smilie
# 2  
Old 04-19-2010
Since we don't know what your job description is, we can't tell you what exercises would relate to your work.

Generally, a good starting point for C programming is The C Programming Language by Kernighan and Ritchie. From there on it largely depends on what you want to do.
# 3  
Old 04-28-2010
C programming in Unix references...

I agree that the K&R book is a good place to start. I also like 'Topics in C Programming, Revised Edition' by Stephen Kochan and Patrick H. Wood. It's an older book but I think still a good general book on the subject. Here's the ISBN numbers...

ISBN-10: 0471534048
ISBN-13: 978-0471534044

One other thought I had was that since you have already been doing shell scripting, maybe what you can do is to try to write particular utilities in C that you can call from your shell scripts to do certain things faster. That will also require that you write your programs in a way that works well to integrate into shell scripts.
# 4  
Old 04-29-2010
Advanced Programming in the UNIX environment is also an excellent book.

...

But if you are pretty much new to C then you can start with K&R2. Smilie
# 5  
Old 04-29-2010
'Practical C' is aimed at step-by-step program building using C. 3rd Edition is out - used copies are about $US 3.00.
# 6  
Old 04-29-2010
Quote:
Originally Posted by verdepollo
Yes, I'll second that -- I agree that's an excellent book too!

It's very unusual for a computer book of most any type to stand the test of time -- this is one that stands up well, as well as the K&R.
# 7  
Old 04-29-2010
Steven's books (network I&II, Advanced programming) are fantastic. But. They are way beyond what the OP needs.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. UNIX for Beginners Questions & Answers

&& meaning in UNIX

Hi Team, I know that "&" holds the result of current pattern match. But what does "&&" means and its use please? Thanks & Regards, Batta Archana (6 Replies)
Discussion started by: Archana Batta
6 Replies

3. UNIX for Dummies Questions & Answers

AT&T Unix?

Where can I get AT&T Unix so I can install it on my computer? (6 Replies)
Discussion started by: NathanJAllen
6 Replies

4. Shell Programming and Scripting

How to write If statement using && and operator in Unix

Hi What is the syntax for if statement using && and || operator? if && ] || here its giving me an error to this if statement any suggestion?? (2 Replies)
Discussion started by: Avi
2 Replies

5. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

6. UNIX for Advanced & Expert Users

Unix: socket & Co

Hello, I need help to replace the ................. of client.c that request the server implemented by server.c ------------------ Listing 1 - server.c /* Inclusion des différentes librairies nécessaires */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> ... (0 Replies)
Discussion started by: bounkolh
0 Replies

7. UNIX for Dummies Questions & Answers

Im new & know nothing about unix.... please help!

what is unix? what is the purpose of unix? is unix like dos? (5 Replies)
Discussion started by: Matthews
5 Replies

8. UNIX Desktop Questions & Answers

Mac OS X & Unix.

Are the Terminal commands used in Mac OS 10.1.3 the same as those found on a real Unix system? if they are, what book would you recommend as a terminal refferance guide? I already have 'The Missing Manual' by O'Reilly, but there ain't much in terms of managing the system via the terminal :( ... (9 Replies)
Discussion started by: LAdesign
9 Replies

9. UNIX Desktop Questions & Answers

what is the difference between Unix & linux, what are the advantages & disadvantages

ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies
Login or Register to Ask a Question