# graph < $1 > $1.meta;
# plot -T ps < $1.meta
# graph -T ps $1 > $1.ps; nsfdistill $1.ps
graph -T gif $1 > $1.gif

You may have figured this out already.
But yes you can type as long as you want. If the sentence is not complete, it will give you another line.

But it is easier to read the matrix or vector as shown below and then index to select what you want:

load a file:
filename <- read.table("inputFile",sep="\t",row.names=1,header=T)
filename <- read.table("inputfile",sep=" ")
##header=column names, optional 
##row.names=column with row names, optional

x<- filename[1,] #x gets a vector from first row of filename
x<- filename[,1] #x gets a vector from first column of filename
x<- filename[1,1] # x gets firts element of filename
x<- filename[1:10,] #x gets a matrix with first ten rows
x<- filename[c(1,4:5,10),] #x gets a matrix with first, fourth,
# fifth and tenth rows

and so on...
postscript("file.ps")
pdf("file4.pdf")
x <- filename[,1]
y <- filename[,2]
plot(x,y)
dev.off()
quit()

to export a file use: 
write.table(filename,"fileout",sep="\t")

If you want to do something over each row or column in a matrix see "?apply"

R

