Sponsored Content
Full Discussion: Unix commands in one line
Top Forums Shell Programming and Scripting Unix commands in one line Post 302253956 by AmorBELAID on Monday 3rd of November 2008 07:22:30 AM
Old 11-03-2008
Commands in one line

if vi is the default editor than :

1)write a=1
2) pass to command mode (key esc)
3) press key v
4) write your follwing code
5) save and quit the editor
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maingrame to UNIX sending UNIX commands

I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies

2. UNIX for Advanced & Expert Users

two commands on 1 line

wuts the command that allows u to use 2 commands on one line? (2 Replies)
Discussion started by: el_soldado
2 Replies

3. Shell Programming and Scripting

Commands and Command Line Flags

Hello I'm very new to unix, am learning it as part of my new job. I have a book which has a list in the back, of a number of commands and their command line flags, detailing what these flags are used for. I've been looking everywhere for an electronic copy of this type of list, so I can... (4 Replies)
Discussion started by: Kedgeboy
4 Replies

4. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

5. Shell Programming and Scripting

Seperate commands on the same line

hello, is there a way to seperate commands that are on the same line? ie: echo "yes count(*)>0:" $passvar > dsp cat dsp cat dsp > log i'm trying to put these 3 commands on the same line, but when i do they all get concatenated into 1 lieteral if i put the cat commands on... (3 Replies)
Discussion started by: bobk544
3 Replies

6. UNIX for Dummies Questions & Answers

How to get nth line from a file usuing commands

Hi to all, I have a file with 1000 lines,Now i need to get 789th record.So please any one help me out from this. Thanks in advance. Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies

7. UNIX for Dummies Questions & Answers

Running two commands in one line

hi! how do i run 2 command from the same line e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies

8. UNIX for Dummies Questions & Answers

How do you use UNIX commands in the Windows Command Line?

I tried opening the windows command line and typing UNIX commands, but they don't work. It kept saying that it was not recognized as an internal or external command, operable program or batch file. Removed strange sentence with even stranger link I need to use UNIX commands such as 'less',... (9 Replies)
Discussion started by: vlay2
9 Replies

9. UNIX for Dummies Questions & Answers

Multiple Commands on a Single Line

Hi There, I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line. The functional objective is actually really simple; cmd var1 The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
3 Replies

10. Shell Programming and Scripting

Reading ls -l output line by line awk the user name and su user to run commands

Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies
LE(1)							      General Commands Manual							     LE(1)

NAME
       le - full screen text editor

SYNOPSIS
       le [options] filename

DESCRIPTION
       le  is  a  text editor which offers wide range of capabilities with a simple interface. It has a pull down menu and a simple help system to
       get started. See KEYS section below to learn about key combinations.

       Among its features there are: various operations with stream and rectangular blocks, search and replace with full regular expressions, text
       formatting, undelete/uninsert, hex editing, tunable key sequences, tunable colors, tunable syntax highlighting.

       The editor currently supports only one loaded file at a time.

KEYS
       Here are some starting hints:

       F10 or C-n
	      menu

       F1     help

       C-x    exit (cancel)

       Arrows navigate

       In the editor the following key description is used:

       Key1-Key2
	      simultaneous key1 and key2 press

       Key1+Key2
	      sequential keys press

       Key1 | Key2
	      press Key1 OR Key2

       ^Key   Ctrl-Key

       ~Key   Shift-Key

       ^~Key  Ctrl-Shift-Key | Alt-Key

       Some of ^Fx, ~Fx, ^~Fx can be typed as ESC+Fx.

       The rest of key combinations can be seen in help, in menu and in the keyboard map (default one can be seen with le --dump-keymap).

       There  is  support for block filtering through an external program, a command output read-in, writing a block through a command. To read or
       write block from/to a command, use F4+R or F4+W and file name of the following format: ``|command args''. Filtering  is	achieved  by  F4+|
       followed by command name.

STATUS LINE
       On the status line you can see current line, column, the size of loaded file, the code of character under cursor, several one letter flags,
       file name, offset in bytes from the file beginning and percent position in the file.

       One letters flags are: * - modified; R - Russian keyboard (works only on certain terminals); I - insert, O - overstrike; A - autoindent;  D
       - dos style line terminators (CR NL); U - undelete possible, u - uninsert possible; B - column block mode.

TEXT PROTECTION
       To  prevent  changes loss on crash, le regularly dumps the editing text, if changed, to ~/.le/tmp/FILENAME.PID , where FILENAME is the file
       name with slashes converted to underlines; PID is the process id of the editor process.

       When the editor gets a fatal signal, it also dumps the text, to ~/.le/tmp/DUMP-SIG-FILENAME.PID , where SIG is the signal number.

OPTIONS
       -r, --read-only
	      Work as viewer, don't allow changes. If your system supports mmap(2), it will be used to get file contents to memory.

       -h, --hex-mode
	      Start in hex mode

       --mmap Use mmap(2) to load file read-only. Can be used to view very large files or even devices. This implies -h.

       --mmap-rw
	      Use mmap(2) to load file read-write in MAP_SHARED mode. Use with caution -- the changes go directly to file or  disk,  no  undo.	In
	      this mode only replace can be used, but it allows editing of very large files or even devices.  This implies -h.

       -b, --black-white
	      Start in black & white mode

       -c, --color
	      Start in color mode

       --dump-keymap
	      Dump default keymap to stdout and exit

       --dump-colors
	      Dump default color map to stdout and exit

       --version
	      Print the version of LE and exit

       --help Print short description of options and exit

FILES
       DATADIR/colors
       ~/.le/colors
       DATADIR/colors-$TERM
       ~/.le/colors-$TERM
	      Color palette description. Those files are sequentially read and color definitions in later files have higher precision.

       ~/.le/keymap-$TERM
       DATADIR/keymap-$TERM
       ~/.le/keymap
       DATADIR/keymap
	      Key map descriptions. Only the first existing file is read.

       ~/.le/term-$TERM
       DATADIR/term-$TERM
	      Terminal specific options. Only the first existing file is read. Use Options->Terminal menu to tune the options.

       ./.le.ini
       ~/.le/le.ini
       DATADIR/le.ini
	      Options. Only the first existing file is read. Use menu Options to tune these.

       .le.syntax
       ~/.le/syntax
       DATADIR/syntax
	      Syntax  highlighting rules.  Only the first existing file is read. There is no default built-in in the editor, so if those files are
	      not present you won't see any syntax highlighting.

       ~/.le/mainmenu
       DATADIR/mainmenu
	      Main editor menu. It has simple text format. Only the first existing file is read.

       ~/.le/history
	      Various histories are saved here. Do not edit by hand.

       DATADIR is determined at compile time by configure script (pkgdatadir variable). By default it has value /usr/local/share/le.

AUTHOR
       The LE editor was written by Alexander V. Lukyanov <lav@yars.free.net>.

								    28 Sep 2000 							     LE(1)
All times are GMT -4. The time now is 10:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy