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

Re: OT exam question



On Tue, 17 Dec 2002, David Sudjiman wrote:

> On Mon, 16 Dec 2002, faisal gillani wrote:
> > 1 write a one line command to create a directory
> > called dir1 to move into it list its content & @ last
> > print your working directory "all in one line ?"
> 
> mkdir dir1 &&  find ./dir1 && pwd

based on the question, i'd write

$ mkdir dir && cd dir && ls && pwd

there's also just separating the commands with a ";", but that's
a pretty tacky way of satisfying the requirement of being 
"all in one line".  really, both ways are still a sequence of
four commands, and i really hate cutesy, trick answers.

rday





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