Sponsored Content
Full Discussion: vi Replace vs Input
Top Forums UNIX for Dummies Questions & Answers vi Replace vs Input Post 1330 by jpprial on Monday 26th of February 2001 01:37:01 AM
Old 02-26-2001
I have this stange behaviour when using VI on my school account. I am editing small files, so I like to stay in REPLACE mode most of the time, and just use the arrow keys to navigate the text. But every time I press an arrow key, I get switched from REPLACE to INPUT mode. Is there a setting somewhere that's causing this to happen?

thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

replace <Address> with a var input by user

Hi, All here is not a full version script, just post a sample. #/bin/bash read -p 'Addr: ' addr sed 's/<Address>/'"$addr"'/' pf.mod>$1 If the input string include `/', sed will return error message. I know that s/// can be replaced with s::: or s!!!, etc, but the input var can accept... (4 Replies)
Discussion started by: r2007
4 Replies

2. UNIX for Dummies Questions & Answers

multiple input search and replace script

hi, i want to create a script that will search and replace the values inside a particular file. i have 5 files that i need to change some values inside and i don't want to use vi to edit these files. All the inputted values on the script below will be passed into the files. cho "" echo... (3 Replies)
Discussion started by: tungaw2004
3 Replies

3. Shell Programming and Scripting

Replace text in input file

I wish to replace values of specific parameters in an input file for batch runs of a java code. It's essentially a nested for-loop sorta like this: valuearray1 contains values for param1 valuearray2 contains values for param2 for (all values in valuearray1) go into specific position in... (2 Replies)
Discussion started by: daphantomica
2 Replies

4. Shell Programming and Scripting

find & replace with user input

Trying to create a script/executable to replace "abc" text string in "myfile.htm" with input from a pop-up field. For example, launch this thing and a prompt is popped up asking the user to input what "abc" should be replaced with, then it inserts what the user inputs in place of abc in the... (3 Replies)
Discussion started by: mike909
3 Replies

5. Shell Programming and Scripting

find and replace in a directory using an input file

Hi folks, I need help to finish this script please. see below: I have an input file with all the IP address to names formated like so in a txt file addnsr1pri 166.7.3.105 addnsr1sec 166.2.100.22 addnsr2pri 166.2.220.121 addnsr2sec 166.3.68.45... (12 Replies)
Discussion started by: richsark
12 Replies

6. Shell Programming and Scripting

Replace two values in a file with input from two different files

Hi, I was having the following issue cat input hello1, my name is unix.com. I am awesome. Hope you know this, hello2! cat hello1.txt Hi Friends Hi Folks Hi Well-Wishers cat hello2.txt Honey Sweety Darling Required Output (8 Replies)
Discussion started by: jacobs.smith
8 Replies

7. Linux

Search a template file and replace with input

Hi I have a CommonTemplateStop.template file . Inside the file i need to replace the variables DepName and CompInsName with the values(Trade and TradeIns) specified in the script. I have written the below .sh script in linux server which will read the .template file and has to replace the 2... (8 Replies)
Discussion started by: samrat dutta
8 Replies

8. Shell Programming and Scripting

Replace string - searching from input file

Hi I need help with writing a script to change a string in a file. The script needs to read an input list (list.txt) file line by line searching for that string in a text.file. Once the string is found the last few words in the string should be replaced. eg list.txt will contain hello my... (6 Replies)
Discussion started by: sudobash
6 Replies

9. Shell Programming and Scripting

Replace value from input parameter

Hi Guys, I am having a script file where in getting input parameter as string. I need to assign the variable but not able to achieve #!/bin/bash input=$1 replace=string_$input_string2 echo $replace I am getting but should get string_<input_value>_string2 string_ (1 Reply)
Discussion started by: rohit_shinez
1 Replies

10. Shell Programming and Scripting

Replace a string based on input

I am trying to read a value from a mapping file and would need to replace the value based on country parameter source_table_@ctry_final Expected final_var=source_table_aus_final If the country is in nz,usa,uk then final_var=diff_table_nz_final final_var=diff_table_usa_final like that... (10 Replies)
Discussion started by: Master_Mind
10 Replies
SMBC(1) 							  Samba Commander							   SMBC(1)

NAME
smbc - Text mode SMB network commander. DESCRIPTION
Samba Commander is a text mode SMB network commander. With SMBC, you can browse your local network or use the search function to find files in a share. You can also download/upload files and directories or create them both locally and remotely. SMBC features the resume capabil- ity and UTF-8 encoding support. OPTIONS
-V --version Displays the version of Smbc. -h --help Prints a help message describing all Smbc's command-line options. -f --flush Flushes all download lists. All files from ~/.smbc/ with dulist* name will be removed. In next run of Smbc the download/upload list will be empty. -l --list Shows all download lists from ~/.smbc/. -s INT --show=INT Displays all items from list with INT number. You can get all numbers from the list executing smbc -l command. -p --sleep Sleeps Smbc. Smbc doesn't download/upload any files when executing even if some file is waiting in queue. -m STRING --message=STRING Receives message from samba. If you want that Smbc receives WinPopup message you must add the line below to smb.conf message command = /path_to/smbc -m 'message from %f on %m' -i %s; rm %s Now if you have running Smbc and someone sends you a WinPopup message Smbc immediately displays it. If you don't run a Smbc all WinPopup messages wait for executing a Smbc. -i STRING --file=STRING Sets file with samba message, usage only with -m. MENUS AND KEYS
At top of the main menu is mini status bar. There is displayed small help with functions. When Smbc downloads/uploads any file in mini sta- tus bar is displayed progress of downloading/uploading. main menu - keys (arrow-up) (p) - move one item up (arrow-down) (o) - move one item down (tab) (i) - change selected column (t) - group/ungroup catalog or files (end) (u) - go to the end off list (home) (y) - go to the start off list (F5) (d) - download/upload selected files and directories (w) - reverse sorting (enter) (x) - execute a workgroup, host, share or directory (insert) (a) - select or unselect one item (page up) (l) - move one screen up (page down) (k) - move one screen down (F8) (ctrl+d) - delete selected files and directories (F7) (c) - create directory (F3) (v) - view text file, execute workgroup, host, share or directory (g) - go to workgroup, host, share in remote host (e) - change type of sorting (s) - edit download/upload list (m) - send a WinPopup message (b) - bookmark (bb) - add item to bookmark (q) - exit from Smbc download/upload list menu - keys (q) - exit from this menu (del) (d) - set selected item to delete (u) - set selected item to undelete (m) - mark/unmark selected item (space) - pause/resume selected item download (ctrl+d) - delete all dirs and subdirs for selected item (ctrl+f) - flush all items (arrow-right) (.) - add 1 second to delay time (arrow-left) (,) - take off 1 second from delay time (shift+arrow-right) (>) - add 60 seconds to delay time (shift+arrow-left) (<) - take off 60 seconds from delay time (;) - add 1 second to delay time for all items (') - take off 1 second from delay time for all items (:) - add 60 seconds to delay time for all items (") - take off 60 seconds from delay time for all items (|) - copy current item delay time to all items (n) - set try download now to select item (N) - set try download now to all items bookmark list menu - keys (q) - exit from this menu (b) - add item to bookmark and exit (del) (d) - set selected item to delete (u) - set selected item to undelete (m) - mark/unmark item (enter) (x) - go to selected item message when connection broken - keys (arrow-up) (.) - add 1 second to delay time (arrow-down) (,) - take off 1 second from delay time (shift+arrow-up) (>) - add 60 seconds to delay time (shift+arrow-down) (<) - take off 60 seconds from delay time find file menu - keys > input items < (enter) (tab) - go to the next item (ctrl+p) - enable/disable interactive filtering (ctrl+k) - exit from find file menu > select items < (tab) - go to the next item (enter) - go to selected file (q) - quit AVAILABILITY
The latest version of this program can be found at http://smbc.airm.net. SEE ALSO
README BUGS
You are welcome to send bug reports about Smbc to <smbc@airm.net>. SEE ALSO
smbc(1) AUTHOR
Originally written by Rafal Michniewicz <rafim@data.pl>. SMBC Version 1.1.2 February 2005 SMBC(1)
All times are GMT -4. The time now is 11:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy