LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2011, 06:26 AM   #1
Petr Strajt
LQ Newbie
 
Registered: Oct 2011
Location: Olomouc Czech Republic
Distribution: Slackware
Posts: 17

Rep: Reputation: Disabled
How edit few files simultaneously in emacs


i have got and www page and need make change in few files, for example added item to menu. Open One file after another not fine, beacose This process takes a long time and easy to make a mistake.

How make change once and aply it in few files simultaneously.

Thanks

Petr Strajt
 
Old 10-14-2011, 12:58 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
To quote Bob Dylan "Yes, I think it can very easily be done ":

This should point you in the right direction:
http://atomized.org/2009/05/emacs-ne...-across-files/

ALTERNATE SUGGESTION:
If the "search pattern" in your files is regular enough, perhaps the easier solution might be to run "sed" or "awk" in a script that loops through your files.
 
1 members found this post helpful.
  


Reply



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
How to edit a specific parameter in many files simultaneously zeusys Linux - Newbie 3 09-02-2011 10:59 AM
HOWTO edit Files with Emacs enero forte Linux - Newbie 1 09-02-2011 07:46 AM
emacs - html-helper-mode- edit template flebber Programming 3 12-12-2007 10:02 PM
dd 2 output files simultaneously, is it possible? kav Linux - Software 1 07-28-2007 01:39 PM
How Can I edit files that emacs won't let me? MDBlueIce Linux - Newbie 2 08-19-2004 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

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
Open Source Consulting | Domain Registration