- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: emacs
Operating System - HP-UX
1753773
Members
5225
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2003 08:40 AM
тАО08-16-2003 08:40 AM
Good morning. I am trying to do something simple in emacs. I have never used it before. I am trying to do a global substitute in a file. I need to substitute the word lvmcong for lvmconf inthe entire file which is very large. Could someone please give me a command that does inside of emacs.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2003 09:51 AM
тАО08-16-2003 09:51 AM
Solution
Hi,
why do you want to use emacs ? I think there are many ways how to do it the easiest way.
For instance :
1.
sed s/lvmcong/lvmconf/g name_file
2.
vi name_file
ex: s/lvmcong/lvmconf/g
Unfortunately, I've never used Emacs, but I suppose there is very similiar command as I described you above.
HTH
Radim
why do you want to use emacs ? I think there are many ways how to do it the easiest way.
For instance :
1.
sed s/lvmcong/lvmconf/g name_file
2.
vi name_file
ex: s/lvmcong/lvmconf/g
Unfortunately, I've never used Emacs, but I suppose there is very similiar command as I described you above.
HTH
Radim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2003 12:26 PM
тАО08-16-2003 12:26 PM
Re: emacs
Thankyou that worked. I was just trying ti figure emacs. I do have another question.
I am trying to use the find command to track down a word in a header file that is somewhwre in /usr/include. The string i am looking for is ptrdiff_t inside of one of the files. What find command would i use to list this file?
I am trying to use the find command to track down a word in a header file that is somewhwre in /usr/include. The string i am looking for is ptrdiff_t inside of one of the files. What find command would i use to list this file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2003 02:19 PM
тАО08-16-2003 02:19 PM
Re: emacs
The simplest is to use find as in:
$ find /usr/include -type f -exec grep -l ptrdiff_t {} \;
/usr/include/stddef.h
So the typedef is located in the stddef.h file. Using -l limits the output of grep to just the filename(s) that match.
Bill Hassell, sysadmin
$ find /usr/include -type f -exec grep -l ptrdiff_t {} \;
/usr/include/stddef.h
So the typedef is located in the stddef.h file. Using -l limits the output of grep to just the filename(s) that match.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP