![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to search for text in a file and copy file | imeadows | UNIX for Dummies Questions & Answers | 9 | 1 Week Ago 06:12 PM |
| Script to capture new lines in a file and copy it to new file | fara_aris | Shell Programming and Scripting | 0 | 05-27-2008 07:11 PM |
| How to copy file through ssh | tikka123 | Shell Programming and Scripting | 2 | 03-18-2008 01:40 AM |
| Copy File | JuergenW | UNIX for Dummies Questions & Answers | 2 | 09-09-2002 05:17 AM |
| % File Copy | Enda Martin | UNIX for Dummies Questions & Answers | 2 | 08-30-2001 03:26 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
using C to copy a file ...
Hi mates,
I have created a shell of my own and one of the built in functions is COPY. This command is supposed to check the availability of a command in a specific direcotry and if the command is available chnage its extension to old. my problem is that how can i search for that specific file in the direcotry. assume that i have 2 arguments on for source file and another for distination file. an example will be appreciated. abdul |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
For reading directories in C use the following
library calls: opendir(3), readdir(3), closedir(3), rewinddir(3), seekdir(3), telldir(3), scandir(3) For renaming check out: link(2), unlink(2), rename(2) |
||||
| Google The UNIX and Linux Forums |