Is there a way using bash that I can edit a command line using vi.
I.e. if I have a long command line and I want to edit it.....by typing vi and then having the command open in an editing window....
I beleive this can be done in k shell by pressing v....however can find out how this can be... (3 Replies)
Hi
Sorry to post a bit of an "I'm an idiot" post, but I did a typing error and typed "ls 'l" instead of "ls -l". This seems to have made me enter some sort of mode or other that I can't seem to be able to get out of. The new line prompt is > (if that helps).
Sorry for posting such a... (1 Reply)
Server: IBM p770
OS: AIX 6.1 TL5 SP1
When one of our develoeprs types "bash" on the command line to switch shells, it hangs. For some reason, two bash processes are created....the first bash process spawns a second bash process in the same console, causing a hang. Anyone have any idea what... (2 Replies)
I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing
set
you can also use them "on the command line when running a script..." and it lists this in a small table:
set -o option Command Line... (5 Replies)
I have been trying this a lot of different ways and haven't found too much online. Here's what I've got so far:
j=0
declare -a first
zero=(`cat $tmpfile`)
for i in "${zero}"
do
command $i >> "${first}"
... (4 Replies)
This should be extremely simple and someone will probably answer it in .5 seconds. I need to know what:
VARIABLE=${0##*/}
does? I do not have a shell handy to just try it in. I am reading through some scripts and need to understand this line. Any help is appreciated.
Many thanks!
-... (3 Replies)
Hello All,
I was writing a Bash shell script that will be executed on both an AIX server (/usr/bin/ksh) and a SLES server (/bin/bash). The AIX server
has Bash installed at "/usr/bin/bash", which is in a different dir then the SLES server.
So basically I am writing the script on the SLES... (4 Replies)
The below command moves all the .vcf files into the directory.
cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar
When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
LEARN ABOUT DEBIAN
tangram::cursor
Tangram::Cursor(3pm) User Contributed Perl Documentation Tangram::Cursor(3pm)NAME
Tangram::Cursor - traverse a result set
SYNOPSIS
$cursor = $storage->cursor($remote, $filter);
while (my $obj = $cursor->current())
{
# process $obj
$cursor->next();
}
$cursor->execute();
while (my $obj = $cursor->current())
{
# process $obj
$cursor->next();
}
DESCRIPTION
A Cursor makes it possible to iterate over a result set without loading all the objects in memory.
See also the "limit" option to the select method of the Tangram::Storage class.
INSTANCE METHODS
current
$obj = $cursor->current();
Returns the current object, or undef() if the result set is exhausted.
next
$obj = $cursor->next();
@obj = $cursor->next();
Moves to the next object in the result set, if any. Returns the new current object, or undef() if the result set is exhausted. In list con-
text, return all the remaining objects.
execute
$cursor->execute();
Moves the cursor to the first object in the result set, and return it. Note that preparing Cursors is an expensive operation, you should
reuse them if possible. execute() allows just that.
execute() may be called several times in a row, or on a Cursor that has just been obtained from a Storage, without ill effects.
residue
my @vals = $cursor->residue();
Returns the values of the Expr that were passed to the "retrieve" directive of the Storage::select() or Storage::cursor() statement.
CURSORS AND CONNECTIONS
Each Cursor opens its own connection to the database.
SEE ALSO
Tangram::Storage
perl v5.8.8 2006-03-29 Tangram::Cursor(3pm)