Day 1 C Programming
Day1
Introduction and Basic C Features
Intro to C
Data types, variable declaration
If statements
Switch case
Loops in C
Functions and Program Organization
Day1
Pointers, Arrays and Strings
Pointers
Structures
Arrays
C-style Strings
Day 2
File IO
C File I/O - Reading and writing with fprintf, fscanf fputc, and fgetc
Binary file I/O - fread and fwrite
Command line arguments
Day 2
Preprocessor declartions like
#include
#define
#undef
#if
#ifdef
#ifndef
#error
__FILE__
__LINE__
__DATE__
__TIME__
__TIMESTAMP__
pragma
Day3
Introduction to Unix / Linux
Evolution of Unix / Linux
Comparison of Unix / Linux with other operating system
Unix / Linux users and superuser
Signing on to Unix / Linux
Unix / Linux system prompt
Introduction to some Unix / Linux commands: cat, ls, date, cal, logname
Stopping a command
Getting online help: the man command
Unix / Linux file structure Features of the file structure Inode concept
Different types of files Rules for file names
Working with Directories
Checking the current directory: pwd command
Changing directory: cd command
Listing directory contents: ls commands
Various options of the ls command: x, f, a, l, t, r, ?, *, [ ], F, R
Creating user directories with mkdir
Deleting directories with rmdir
Working with Files
Determining the type of a file using file command
Viewing the contents of a file: cat command
Pagewise display of a file: pg command
Pausing the output: more filter
Changing file permissions: chmod
Creating files using cat
Day3
Copying files using cp
Moving and renaming files using mv
Removing files using rm
Counting words and characters: wc command
Printing a file: lp command
Comparing files: cmp, comm and diff commands
Paginating files: pr
Viewing the beginning of a file: head
Viewing the end of a file: tail
The Process
Listing of processes: ps command
Premature termination of a process: kill
Background processing
Communication Utilities
Sending messages: write, talk commands
Controlling messages: mesg command
Sending mail: commands
General Purpose Utilities
Using calendar: cal command
Viewing system date: date
Day3
Shell Programming
Introduction Unix / Linux shells
Introduction shell programming
Naming shell procedures
Shell variables
System variables
Arguments to shell procedures
The echo command
The set command
Looping with 'for' statement
Conditional execution with 'if', 'else', 'elif'
The 'exit' statement
More on shell programming
The 'while' and 'until' statements
Altering loop execution with 'break' and 'continue'
'true' and 'false'
Selective execution using 'case' statement
Doing arighmetic with 'expr'
User input tshell procedures
Passing the standard input
The 'read' statement
Day4
awk:
awk - Read and split file contents
awk - Passing arguments or shell variables to awk
awk - Match a pattern in a file in Linux
awk - Join or merge lines on finding a pattern
awk - to group data in a text file
awk - Accessing awk variables in shell
sed:
sed - Include or append a line to a file
sed - Replace or substitute file contents
sed - Read from a file or write into a file
sed - Selective Printing
sed - Replace or substitute file contents - more options
sed - to delete a line or pattern in a file
sed - to print lines in a file
Display of commonly used options and explaining via quick reference sheet
Porting issues - points to ponder from unix to Linux
Day 4 after
noon
and Day 5
FORTRAN Programming
- Basics
- Decisions
- Loops
- Files & Precision
- Arrays
- Subprograms
Creation of makefile and execution
Lab setup
in windows install 'http://www.codeblocks.org/downloads/binaries - SELECT
codeblocks-16.01mingw_fortran-setup.exe AND DOWNLOAD AND INSTALL.' for C
and Fortran programming
Install Red hat Linux as server or in individual system and provide with user name
and password