Sponsored Content
Full Discussion: Vi editing with a command
Top Forums Shell Programming and Scripting Vi editing with a command Post 302902566 by rbatte1 on Wednesday 21st of May 2014 06:57:25 AM
Old 05-21-2014
Can you remote shell or SSH connect without a password with sufficient privileges?

If so, then you can set up a loop to execute the same to each server submitting a chuser command rather than editing the file.


What have you got so far?


Robin
 

10 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

Single line file editing command?

Hello everyone. I have been reading a lot about the various different text editors at my disposal through Unix, but I just can't seem to close the deal for what I am trying to do. Is there a way to issue a single line command to edit a file where pattern=x, and do it non-destructively AND in-place?... (1 Reply)
Discussion started by: gator76
1 Replies

3. Shell Programming and Scripting

file editing

hi experts, please help me in writting the script.. i have two files file1 and file 2 i have to write a script which will take input parameters as file1 and file2 file1: ...... 1 2 3 4 file2: ..... 1 2 output (6 Replies)
Discussion started by: subhendu81
6 Replies

4. UNIX for Dummies Questions & Answers

Shutcut for editing a command.

Hi, I need a help on editing a long command. For comming to end of the command I am using ctrl+E and for start of the command I am using Ctrl+A. But don't how to iterate word by word. For this purpose I am using aerrow keys character by character. Do we have any shut cut for moving word by word? (3 Replies)
Discussion started by: siba.s.nayak
3 Replies

5. Shell Programming and Scripting

editing a file

Hi i have a file name as file1 which has Following content: ROLLOVER_INTERVAL=0 OUTPUT_DIR_COUNT=MULTIPLE FILETYPE=XmlExporter i want to change the FILETYPE=recordexport can any one pls help me on this 2nd query: i want to change OUTPUT_DIR_COUNT=MULTIPLE as ... (2 Replies)
Discussion started by: Aditya.Gurgaon
2 Replies

6. UNIX for Dummies Questions & Answers

ksh command line editing text being overwritten

hi. i'm using ksh with set -o vi. if i am far down in a directory and try to edit the command line (esc-k to retrieve previous command) the cursor is being positioned over to the left on top of the directory text making the text very difficult to read or work with. seems to be problem with long... (2 Replies)
Discussion started by: jeffa123
2 Replies

7. Shell Programming and Scripting

problem in using sed command in editing a file

Hi all, I have a conf file, i want to update some entries in that conf file. Below is the code for that using a temporary file. sed '/workgroup=/ c\workgroup=Workgroup' /usr/local/netx.conf > /usr/local/netx.conf.tmp mv -f /usr/local/netx.conf.tmp /usr/local/netx.conf Sample contents of... (9 Replies)
Discussion started by: ranj14r
9 Replies

8. UNIX for Dummies Questions & Answers

stuck in editing file with cat command

Hi, While editing a small text file with cat command i pressed ctrl-d to send eof, instead of coming out of cat command it echoed ^D to the screen. Same thing is happening to ctrl-c. After googling i found this is because of trap. The problem is i m stuck in editing mode and cannot get the... (3 Replies)
Discussion started by: TITANIUM
3 Replies

9. Shell Programming and Scripting

Editing the timestamp

i have data in 3 columns in the format below 2011-11-01-0936,2115,978 2011-11-01-0937,2242,1046 2011-11-01-0938,2538,1186 2011-11-01-0939,2295,1074 2011-11-01-0940,2454,1142 2011-11-01-0941,2545,1184 2011-11-01-0942,2491,1153 I however want to either remove the date on the timestamp and... (2 Replies)
Discussion started by: thinktank
2 Replies

10. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies
CONCH(1)																  CONCH(1)

NAME
tkconch - connect to SSH servers graphically SYNOPSIS
conch [-l user] [-i identity [ -i identity ... ]] [-c cipher] [-m MAC] [-p port] [-n] [-t] [-T] [-V] [-C] [-N] [-s] [arg [...]] conch --help DESCRIPTION
The --help prints out a usage message to standard output. -l, --user <user> Log in using this user name. -e, --escape <escape character> Set escape character; 'none' = disable (default: ~) -i, --identity <identity> Add an identity file for public key authentication (default: ~/.ssh/identity) -c, --cipher <cipher> Cipher algorithm to use. -m, --macs <mac> Specify MAC algorithms for protocol version 2. -p, --port <port> Port to connect to. -L, --localforward <listen-port:host:port> Forward local port to remote address. -R, --remoteforward <listen-port:host:port> Forward remote port to local address. -t, --tty Allocate a tty even if command is given. -n, --notty Do not allocate a tty. -V, --version Display version number only. -C, --compress Enable compression. -a, --ansilog Print the received data to stdout. -N, --noshell Do not execute a shell or command. -s, --subsystem Invoke command (mandatory) as SSH2 subsystem. --log Print the receieved data to stderr. DESCRIPTION
Open an SSH connection to specified server, and either run the command given there or open a remote interactive shell. AUTHOR
Written by Moshe Zadka, based on conch's help messages REPORTING BUGS
To report a bug, visit http://twistedmatrix.com/bugs/ COPYRIGHT
Copyright (C) 2002-2008 Twisted Matrix Laboratories. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
ssh(1) October 2002 CONCH(1)
All times are GMT -4. The time now is 12:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy