Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Question on bash command line Post 303020972 by Peasant on Wednesday 1st of August 2018 10:44:05 AM
Old 08-01-2018
By issuing 's' over a character and typing a new number, followed by escape.

Regards
Peasant.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

editing bash command line with vi

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)
Discussion started by: peter.herlihy
3 Replies

2. Shell Programming and Scripting

BASH Command Line Typo -- Can't Get Out

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)
Discussion started by: Viola
1 Replies

3. AIX

Typing "bash" at the command line spawns two bash processes

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)
Discussion started by: wjssj
2 Replies

4. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

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)
Discussion started by: Straitsfan
5 Replies

5. Shell Programming and Scripting

Bash - Loading a command's output line by line into an array

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)
Discussion started by: Azrael
4 Replies

6. UNIX for Dummies Questions & Answers

NEWB Question - BASH COMMAND RESULT for ${0##*/}

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)
Discussion started by: chrisgoetz
3 Replies

7. Shell Programming and Scripting

Question about Shebang line of Bash Script

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)
Discussion started by: mrm5102
4 Replies

8. Shell Programming and Scripting

Cp command works on command line but not in bash

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)
Discussion started by: cmccabe
2 Replies

9. Shell Programming and Scripting

How to run several bash commands put in bash command line?

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
vt(1)							      General Commands Manual							     vt(1)

NAME
vt - log into another system over lan SYNOPSIS
nodename [lan_device] [lan_device] DESCRIPTION
enables a user to log into another HP 9000 system (nodename) over an HP local area network. The option causes to send a poll request over the local area network to find out what systems currently have running (see vtdaemon(1M)). An asterisk following a nodename in the response indicates that the system is a gateway. Plus signs following the nodename indicate how many gateways must be traversed to reach that system. The optional argument lan_device specifies a character special device name to use instead of the default device name to send and receive data to and from the local area network. The major number for this device must correspond to a CIO IEEE 802.3 local area network device. Once a connection has been established, enters input mode. In this mode, text typed is sent to the remote host. To issue commands when in input mode, precede them with the escape character (see Commands below). When in command mode, normal terminal editing conventions are available. The connection should terminate automatically upon termination of the login shell on the remote machine. If the connection is not termi- nated upon exit, it is likely that the on the remote system has either been terminated or restarted. To terminate a vt connection, enter command mode and use the command to terminate the connection. Commands recognizes the following commands. Commands can be abbreviated by typing enough of the command to uniquely identify it. Change the working directory on the remote machine to remote-directory. This command is applicable for file transfer only. Set the escape character. If a character is not specified prompts for one. To print or display the current escape character simply press Return in response to this prompt. Print a command summary. Change the local working directory. If no directory is specified, use the user's home directory. This command is applicable for file transfer and shell escapes only. Copy remote-file to local machine and store as local-file. prompts for the file names if they are not specified. The file transfer can be aborted by typing the interrupt character or pressing the break key. Copy local-file to the remote machine and store as remote-file. prompts for the file names if they are not speci- fied. The file transfer can be aborted by typing the interrupt character or pressing the break key. Terminate the connection and exit vt. Identify yourself to the remote server. prompts for a password (after disabling local echo) if a colon is appended to user-name. This com- mand must be executed before any file transfer command can be used. Shell escape. The given command is passed to a sub-shell for execution. If no command is given, a shell is started and connected to the user's terminal. Access Control Lists (ACLs) When sending or receiving files using optional ACL entries are removed. New files have a summary of the access modes (as returned in by of the file being transferred (see stat(2)). DIAGNOSTICS
The diagnostics produced by are intended to be self-explanatory. WARNINGS
uses the Hewlett-Packard LLA (Link Level Access) direct interface to the HP network drivers. uses the multicast address It should not be used or deleted by other applications accessing the network. uses the following IEEE 802.3 sap (service access point) values: and They should not be used by other applications accessing the network. When using on a system with multiple LAN cards installed, the optional command-line argument lan_device may be required if the remote sys- tem is not accessible through the default LAN device. The appropriate lan_device is the one connected (either directly or by way of other gateways) to the remote system. Desktop HP-UX If your system has been installed with the Desktop HP-UX product, neither nor will be started by default. To start these daemons, change PTYDAEMON_START and VTDAEMON_START from a to a in the and files, respectively. The system must be either rebooted for these changes to take effect, or you can start both daemons manually by typing the following commands: where /dev/lan0 is the character special device file corresponding to the IEEE 802.3 local area network device. FILES
Default lan device name. SEE ALSO vtdaemon(1M), stat(2), lan(7), acl(5). vt(1)
All times are GMT -4. The time now is 09:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy