- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- How to open a file in a different directory using ...
Operating System - Tru64 Unix
1752812
Members
5860
Online
108789
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
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
тАО10-16-2003 12:10 PM
тАО10-16-2003 12:10 PM
How to open a file in a different directory using vi
I would like to know if there is any way to open a file that is in some different directory , without giving the absolute path name . I mean , just by giving the name of the file to vi .Is there any way to achieve this by manipulating the path variable or using vi with any option .
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2003 05:31 PM
тАО10-16-2003 05:31 PM
Re: How to open a file in a different directory using vi
No, there isn't but there are ways you could make it look like that.
symbolic or hard link from the file to your current directory is one way.
alias "vmyfile=vi /long/path/to/myfile" so that when you type vmyfile it edits it.
MYFILE=/really/long/path/top/myfile
vi $MYFILE
Maybe this will help.
symbolic or hard link from the file to your current directory is one way.
alias "vmyfile=vi /long/path/to/myfile" so that when you type vmyfile it edits it.
MYFILE=/really/long/path/top/myfile
vi $MYFILE
Maybe this will help.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 04:21 AM
тАО10-17-2003 04:21 AM
Re: How to open a file in a different directory using vi
Try to use a script that do the following ...
#!/usr/bin/ksh
file=$(which $1)
vi $file
the script would be call vi.sh and you use vi.sh file.
good luck.
Romildo
#!/usr/bin/ksh
file=$(which $1)
vi $file
the script would be call vi.sh and you use vi.sh file.
good luck.
Romildo
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