Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!bnrgate!bnr-fos!bmers58!!scottp From: scottp@.bnr.ca (Scott Pace) Newsgroups: comp.editors Subject: vi problem Message-ID: <1608@bmers58.UUCP> Date: 27 Feb 90 18:58:11 GMT Sender: news@bmers58.UUCP Reply-To: uunet!bnrgate!scottp%bmerh461 Distribution: comp.editors Organization: Bell-Northern Research, Ltd. Lines: 21 The problem: I want to pass the output of the :f command (which displays filename and line # among other things) as an argument (or input) to a shell script or program. For example, say I had a file called test which contained the following: echo "$1" I want to be able to run the test script with the output from the :f command as the argument $1 so that it might echo something like ""foo" [Not edited] [Modified] line 23 of 178 --12%--" The entire purpose of this is so that I can pass down the current line number and file name to a script. Any suggestions would be much appreciated. Thanks. -- Scott Pace, USUAL CUTE DISCLAIMER HERE ..uunet!bnrgate!scottp%bmerh461 or scottp@bmerh461.bnr.ca