Re: edit multiple files under multiple directories/folders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27/11/10 03:42 AM, Kaushal Shriyan wrote:
> Hi,
>
> In my home folder I have 6 tomcat directories under
> /home/kaushal/tomcat0......6
>
> Under each of these tomcats there are sub folder conf and inside these conf
> there is a file by the name server.xml so for example I have
> tomcat0,tomcat1,tomcat2,tomcat3,tomcat4,tomcat5 so i need to edit server.xml
> and set port numbers for tomcat0 to 8080 tomcat1 to 8081 and similarly for
> others,the other way is to go to individual directory and do it
>
> Please suggest/guide
>

$ emacs ~/tomcat{0..6}/conf/server.xml &

The above should bring up emacs with a buffer showing the last file in 
the list, and another buffer listing all the other buffers visiting the 
other server.xml files. Of course if you prefer some other editor you 
can use that instead of emacs.

> Thanks and Regards
>

Happy hacking.

> Kaushal
>
>


-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux