Priest of the Order of the Butterfly
Posts: 570 from 2007/7/29
I just replaced the command and not the arguments, same as you did, so I
guess I am right.
I did a textfile SYS:commands.txt with some simple DOS commands:
Code:
dir
list
newcli
date
ed
ifconfig
join
lha
openurl
uptime
version
I want to give the search term to a command and this does not work. For
ed `search sys:commands.txt nonum lha`
it opens an Ed window with the given name to be save. But what I want is to
give the search string to the content of the file, not to the name. So I
want the Ed window to open with the search term as content of it, not with
an empty window. Maybe it was not clearly said.
Same for Multiview but I guess this does not work because Multiview can only
handle files. It also says "Could not load files"
Giving a text string to MPlayer does not make sense, that's clear. I just
named it as an example for maybe another exercise.
RUN works but the others not.
Code:
Ram Disk:> ed `search sys:commands.txt nonum lha`
Ram Disk:>
Ram Disk:> multiview `search sys:commands.txt nonum lha`
Could not load files.
Say I want to touch a new file with the command name and set this name also
as filenote (just for an exercise). then I need to do it like this:
Ram Disk:> touch lha | filenote `search sys:commands.txt nonum lha`
laberhannes
lha..done
That way I have two times the command "lha". Can I make a call to use only
one time this parameter?
Ah, and is it also possible to pick up older commands in the Shell history
by giving their beginning? Say I had the following commands in history:
dir, list, avail, list dates
and I want to just scroll through the commands which start with "l" letter.
I tried to enter "l" and then shift and some other ocmbinations but it did
not work out. Is it possible to filter the other entries out?
BTW: there is another funny thing: when I run "ed otr.log" then I get a long
line with "Progress: 1%Progress: 2%" and so on. When I "type otr.log" all I
get is "Progress: 100%". Seems to be a problem with oneliners as it prints
files like SYS:Docs/Booting MorphOS.txt correctly.