Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
File Creation
Name: Arun Kumar Date: September 17, 2002 at 00:03:51 Pacific OS: LINUX/WINDOWS CPU/Ram: p3
Comment:
If I am doing a file write program in c under LINUX.. can I create the file in D drive of the pc instead of the linux user area.
Name: TaaKie Date: September 17, 2002 at 01:54:28 Pacific
Reply:
Yes you can. First you have to mount your D: drive on an empty directory, for instance: mkdir /my_d_drive mount /my_d_drive /dev/hdb (or whatever drive it is.) You can get the D drive automaticly by inserting a line in the /etc/fstab file. If you do make sure you give with the mount option "msdos"
Summary: I am new to shell scripting. The requirement is as follows: At the beginning of the script, check file creation date. If it's more than 2 days old, rename the file with prefix "backlog". I would reall...