Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Closed Thread
  Search this Thread
Old 10-07-2001, 12:17 AM   #1
LQ Newbie
Registered: Oct 2001
Posts: 3

Rep: Reputation: 0
Red face Deleting newly created files keeping the existing ones

I use Linux, Red Hat 7.1, I am trying to write a shell script.Any help will be appreciated. Thanks.

Suppose I have a working folder called “DIR1” under that folder I have three existing files : FILE1, FILE2, FILE3, for a project.
Now after I compile those files and build two other new files were created : NEW1, NEW2.
I am writing a program/shell script which will verify all 5 FILES ( 3 existing and 2 newly created). This program will delete the newly created 2 files(NEW1,NEW2) and leave the previously existing 3 files (FILE1, FILE2, FILE3) unchanged. Another words the directory “DIR1” will go back to it’s original status.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
saving newly created files using ftp on a network linuxhippy Slackware 5 05-06-2005 03:54 AM
permissions for newly created files dialbat Linux - General 2 10-04-2004 02:58 PM
Can we access the newly created files after dd if=hda6_last_mon_backup of=/dev/hda6 murugesan Linux - Software 0 03-29-2004 08:42 AM
snort error: newly created file is older than distributed files! rufassa Linux - Security 1 11-07-2003 08:53 AM
Deleting the newly created files keeping the existing icorsi Linux - Newbie 2 10-07-2001 11:16 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration