- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create a bourne shell script called myrm
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-06-2008 09:18 AM
тАО10-06-2008 09:18 AM
create a bourne shell script called myrm
this rm like command will not delete a file but will move it to the directory. anybody know how to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 09:30 AM
тАО10-06-2008 09:30 AM
Re: create a bourne shell script called myrm
If that's the case, surely the point of the assignment is for you to learn how to do this yourself by understanding some basic principles of shell scripting, rather than getting an answer from a forum.
That said, I'm sure some desperate points scroungers will be along in a minute to provide you with the answer.
grumble grumble... never happened in my day grumble grumble
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 09:31 AM
тАО10-06-2008 09:31 AM
Re: create a bourne shell script called myrm
shell scripting course
turns up plenty of free learning resources
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 09:49 AM
тАО10-06-2008 09:49 AM
Re: create a bourne shell script called myrm
Welcome to the Forums! But I must join Duncan in saying that if you have an assignment you need to open the student workbook and find the command your instructor told you to learn.
Cause "man move" is not it. And, actually, the command to move is not the most highly recommended, as if anything goes wrong during the operation...poof file gone! I tend to "copy" to new location and then "remove" from old.
Get used to opening a book and find the commands. Cause that's what UNIX Admin's do...we read/research & implement.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 11:58 AM
тАО10-06-2008 11:58 AM
Re: create a bourne shell script called myrm
Yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2008 07:24 AM
тАО10-07-2008 07:24 AM
Re: create a bourne shell script called myrm
or something as simple as:
#!/usr/bin/ksh
if [ -d ~/trashbin ]
then
mkdir ~/trashbin
fi
mv $* ~trashbin