Sponsored Content
Full Discussion: Command line traversal
Top Forums UNIX for Dummies Questions & Answers Command line traversal Post 68544 by kduffin on Tuesday 5th of April 2005 09:48:59 AM
Old 04-05-2005
I tend to run my command line in vi mode via, 'set -o vi'. It removes the need for the Esc and all vi's wonderful shortcuts work.

Keith
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating breadth traversal binary tree

I almost have the entire script written. however the problem is how would i assign the global variable to terminate the process from the bottom up to ensure the child terminates so the parent can. ex. I am proccess 1 I am proccess 2 etc Here is the code $ cat tree.c ... (3 Replies)
Discussion started by: slurpeyatari
3 Replies

2. UNIX for Advanced & Expert Users

need help in file traversal via FTS(3)

Hi friends, I was trying to traverse a file using FTS(3) . this is the code below.. but I am getting segmentation error in the line fts_read(...) , anybody have any idea , why it is? Please, help me. Thanks in advance.... (2 Replies)
Discussion started by: jack85
2 Replies

3. Shell Programming and Scripting

AWK File Traversal

Hey, I'm working on a file traversal and extraction function and am having problems. So, my script is finding all files in a directory. Each file has the same format. I need to extract a field from the 4th line of each file..... hence why I am using the substring on NR == 4. So, I am... (11 Replies)
Discussion started by: beefeater267
11 Replies

4. Shell Programming and Scripting

file traversal

Hi, I have to get some value of the from a flat file and my file format is like this. ABC DEF HIJ=1 XYZ xyz HIJ=2 So i need to make sure i get all the value of HIJ under XYZ and not ABC. (4 Replies)
Discussion started by: nidhink
4 Replies

5. Shell Programming and Scripting

sed command to replace a line at a specific line number with some other line

my requirement is, consider a file output cat output blah sdjfhjkd jsdfhjksdh sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf hellow there this doesnt look good et cetc etc etcetera i want to replace a line of line number 4 ("this doesnt look good") with some other line ... (3 Replies)
Discussion started by: vivek d r
3 Replies

6. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

7. Shell Programming and Scripting

sed command to replace a line in a file using line number from the output of a pipe.

Sed command to replace a line in a file using line number from the output of a pipe. Is it possible to replace a whole line piped from someother command into a file at paritcular line... here is some basic execution flow.. the line number is 412 lineNo=412 Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies

8. Shell Programming and Scripting

Perl command line option '-n','-p' and multiple files: can it know a file name of a printed line?

I am looking for help in processing of those options: '-n' or '-p' I understand what they do and how to use them. But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.) I did try it and -n works on 2 files. Question is: - is it possible to... (6 Replies)
Discussion started by: alex_5161
6 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 08:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy