LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2005, 11:02 PM   #1
printf
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
editors and duplicate files


Hi all

I am just starting to do the better thing so please explain in detail if you can, thanks!

Any ways, I was doing some Perl script editing today in KWrite and I ran into a problem I can not figure out! When I am finished editing I do Ctrl + S and I guess it over writes the old file! But that is not what happens. When I do that and close KWrite I see another file named the same name as the file I just edited but with a * ~ * at the end of it's name, like so * geo_uk.pl~ *. I have to manual delete it because my password end up in that file. So how do I stop that file from being created or have it automatically deleted when I am done editing the original!

Thanks for your time!

Tommy
 
Old 11-19-2005, 12:06 AM   #2
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
I'm probably the least informed person to answer this, but the only time I've seen the tilde is when a process is interupted before it completes. ie: when there's a power outage or closing an application before it completes processing.
 
Old 11-19-2005, 12:53 AM   #3
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
My experience has been *~ file seems to be the version of the file * prior to your last save. For example say you save, type for a bit then save a minute later. The file with the ~ will be what you saved a minute ago. I'm really not sure if this is entirely accurate, and have no idea if there's a way to disable this function.
 
Old 11-19-2005, 02:58 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Those are baclup files created by the text editor in case you need to revert to the old version. You can configure each app individually to prevent it from creating such files.
 
Old 11-19-2005, 07:11 AM   #5
printf
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you leandean, mcmillan and reddazz...

I have gone through the kWrite docs, every page but don't see any where how I can auto remove the copies when I Ctrl + S the changes I made! I'll play with it a little more today to see if I can figure it out!

Thanks again...

Tommy
 
Old 11-19-2005, 07:56 AM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 124Reputation: 124
I have the German version of Kwrite only, but the menus to get to this option should be called something like "Settings" --> "Configure Editor" --> "Open/Save" --> "Backup when saving" (the right option is now at the bottom of the right tab).

Edit: Corrections

Last edited by titopoquito; 11-19-2005 at 08:04 AM.
 
Old 11-19-2005, 09:47 AM   #7
printf
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by titopoquito
I have the German version of Kwrite only, but the menus to get to this option should be called something like "Settings" --> "Configure Editor" --> "Open/Save" --> "Backup when saving" (the right option is now at the bottom of the right tab).

Edit: Corrections

Awesome, titopoquito!!!

Yes that worked just great. Wow I guess I really need to spend time learning this stuff, you know I opened the setting menu but did not go that far! Really I thank you and everyone else so much! This forum rocks! So much great content...

C, ya...

Tommy
 
Old 11-22-2005, 03:54 AM   #8
penguin_powered
LQ Newbie
 
Registered: Apr 2004
Location: Houston, Texas
Distribution: Linux Mint 13, MATE 32-bit edition
Posts: 24

Rep: Reputation: 15
Another suggestion is to forget those WYSIWYG editors and start learning the tools used by system administrators to maintain scripts; namely, the sed editor and the vi editor (or vim, which stands for vi improved)..

Here's a very good article (short tutorial) you'll be interested in that demonstrates how to use sed to maintain files (scripts). http://www.oracle.com/technology/pub...laney_sed.html

Take the time to learn sed and vi, or vim, and you'll never have to worry about all that automated stuff in those other "editors."

To get started learing vim, open a terminal window and type, vimtutor, then press Enter.

Stick with it and you'll be glad you did.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicate files in one folder! hornung Linux - Enterprise 1 01-13-2005 03:35 PM
Duplicate Files and linux carl0ski Linux - Software 1 12-22-2004 04:45 PM
Howto find duplicate files js72 Linux - Software 1 11-09-2003 04:55 AM
config files, gui editors for gnome, kde pfunk Linux - General 1 09-30-2003 02:59 PM
How to duplicate a space i.g Program Files, ? zLinuxz Linux - General 3 05-05-2002 02:03 PM


All times are GMT -5. The time now is 03:10 AM.

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