#!/bin/bash grep -i $1 $HOME/phones
def displayModules(dir):
if os.path.isdir(dir):
if os.path.exists(os.path.join(dir,
"README.texi")):
doCat(dir, "README.texi")
moduleMenu(dir)
listOfModules = []
for file in os.listdir(dir):
if os.path.isfile(os.path.join(dir, file)):
if (len(file)>4) and (file[-4:] == ’.def’):
listOfModules = listOfModules + [file]
parseModules(dir, listOfModules)
else:
print "directory " + dir + " not found"
a.d b.def c.mod d.def e.def
#!/bin/expect set timeout 60 spawn ssh [lindex $argv 0] expect "assword: " send "[lindex $argv 1]\r" expect "\\$" send "cd [lindex $argv 2]\r" expect "\\$" interact
This document was produced using groff-1.19.