Sponsored Content
Full Discussion: vi Replace vs Input
Top Forums UNIX for Dummies Questions & Answers vi Replace vs Input Post 1334 by jpprial on Monday 26th of February 2001 07:53:14 AM
Old 02-26-2001
:h "is not an editor command" is what vi tells me when I try that. Here is my .exrc, is there anything in there that's causing the switch?
set ai list sw=4 showmatch smd

 

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
ttty(7) 						 Miscellaneous Information Manual						   ttty(7)

NAME
ttty - Thai terminal driver SYNOPSIS
#include <sys/aioctl.h> DESCRIPTION
This section describes special features supported by the Thai terminal driver, which is used for conversational computing in a Thai envi- ronment. See tty(7) for a general description of terminal interfaces. See stty(1) for information on how to activate the features dis- cussed here. The Thai terminal driver is available only when Tru64 UNIX optional subsets for worldwide support are installed. This driver also must be configured into the current running kernel in order for Thai support features to be enabled. Line Disciplines Line discipline switching to the Thai terminal driver is accomplished with the following TIOCSETD ioctl: int ldisc = THAIDISC; ioctl(f, TIOCSETD, &ldisc); Input Sequence Checking The Thai terminal driver supports input sequence checking that complies with the Wototo standard. The three different modes of input sequence checking are as follows: Mode 0 (pass-through) No input checking is performed. This mode allows the application program to handle checking of the input sequence. Mode 1 (basic check) This is the default mode for a Thai system. Mode 2 (strict) This mode imposes additional constraints in order to reject obviously illegal input sequences. Input Reordering Input reordering mode, if activated, will reorder the following two types of Thai sequences: L3L1L2 -> L3L2L1 L3L4L1 -> L3L1L4 In these sequences, L1, L2, L3, and L4 are level-1, level-2, level-3, and level-4 characters, respectively. History Mode Line Editing The history mode of the Thai terminal driver allows users to use Emacs-like control codes to edit previously entered command lines. Up to 32 lines can be stored and each line can have a maximum width of 127 characters. However, short command lines, those that are fewer than three characters in length, are not stored in the history list. Depending on the editing command used, the unit of editing may be a character, a cell, or a word. A cell is one physical display column on the screen and may consist of one ASCII character or one to three Thai characters. In this context, a word is a string of characters delimited by white spaces. The following editing commands are available in the history mode: Move to the beginning of the line. Delete the cell under the cursor. Move to the end of the line. Recall the previous command in the history list. Recall the next command in the history list. Move the cursor to the left by one cell. Move the cursor to the right by one cell. Delete the Thai character immediately before the cursor. You can use the stty command to determine and set the character that erases a character. Delete the word before the cursor. You can use the stty command to determine and set the character that erases a word. Typing a normal character causes it to be inserted before the character under the cursor. The kill, interrupt, and suspend characters cause the Thai terminal driver to break out of the history mode. Input sequence checking and input reordering are not performed in history mode. The line-editing features support only single-line edit- ing, not multiple-line editing. For instance, if the cursor is wrapped to the beginning of the next line, you cannot return the cursor to the previous line by pressing the left arrow key. RELATED INFORMATION
Commands: stty(1) Functions: ioctl(2) Files: tty(7) Others: Thai(5), Wototo(5) delim off ttty(7)
All times are GMT -4. The time now is 05:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy