Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!ucsd!rutgers!att!ihlpa!ihnp4!ihlpm!jmdavis From: jmdavis@ihlpm.ATT.COM (Davis) Newsgroups: comp.sys.amiga Subject: Yea, but can an Amiga Shell do this.... Keywords: my favorite unix command Message-ID: <2213@ihlpm.ATT.COM> Date: 8 Aug 88 22:23:52 GMT Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 38 After hearing the talk of AmigaShell and other related things. I am wondering if any of these shells can execute my favorite unix KSH command, namely the backtick. Let me give you an example. Backtick (or grave accent) will "execute a command in place" and let the results of that command be the arguements for your command line. For example, the unix where command finds where a command is located in the PATH variable, while the file command tells what type of command it is (shell script or executable). To find out what type of command ls is I could type: > where ls > /bin/ls > file /bin/ls or I could type: > file `where ls` This may not seem like much to you, but let me assure you that it is great. With it and pipes I can do database ANDs on text files. For example suppose I was interested in the names of all files that have one line that says: Field 1: C Source and another line that says: Field 2: Game I can find these files by the command (Warning, terse unix commands follow): grep "Field 1: C Source" `grep "Field 2: Game" * | cut -f1 -d":"` Is there an Amiga Shell that can do this stuff? -- ________________________________________ This space would have been | Mike Davis LEFT INTENTIONALLY BLANK | ihnp4!ihlpm!jmdavis had I not written in it. |_________________________