Date: Sun, 21 Jun 1998 14:46:26 -0700 From: Tim Gerchmez <fewtch@serv.net> To: "Dru" <genisis@istar.ca> Cc: <freebsd-newbies@FreeBSD.ORG> Subject: Re: Latest discoveries... Message-ID: <3.0.5.32.19980621144626.007f7e80@mx.serv.net> In-Reply-To: <002801bd9d58$89279f00$8301d8cf@genisis>
next in thread | previous in thread | raw e-mail | index | archive | help
Well, I do want to know if it CAN be done as a simple alias rather than using a shell script. I certainly wouldn't mind learning to write shell scripts, but I'd also like to know if an alias in .cshrc can include more than one command, and if so, what the correct syntax would be. Thanks for the suggestion, Tim At 05:06 PM 6/21/98 -0400, Dru wrote: > >>Still need to know: How to use multiple commands in csh aliases. For >>example, in .cshrc, there are alias lines letting you set up your own >>commands. I haven't been able to figure out how to execute more than one >>command at a time using an alias. I want to be able to format, label and >>mount a floppy disk in one operation, but everything I've tried as far as >>setting an alias like "dofloppy" that performs those three operations has >>failed. I've had to break them up into separate aliases. Any clues from >>csh experts out there? If not, I'll try freebsd-questions next. > > >I'm no expert, but it sounds like you want a shell script, not an alias. >This is covered in very good detail with many simple examples in the book >Unix Unleashed in Chapter 13 under Aliases and Shell Scripts. Not trying >to push the website, but I'm poor and the book is excellent. I shelved the >Complete FreeBSD when it told me to use my favorite text editor to set up my >ppp configuration files. Geez, I had had FreeBSD installed and running for >less than 5 minutes and I already had a favorite text editor? Thus my >introduction to Vi, but I digress and don't want to get you started on the >vi thread again. > >Anyways, read the book for free at http://www.mcp.com/personal. Register >your e-mail address to get access to the e-library. Hope this helps. -- My web site starts at http://www.serv.net/~fewtch/index.html - lots of goodies for everyone, have a look if you have the time. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980621144626.007f7e80>