Sponsored Content
Full Discussion: Command line overwrite
Operating Systems SCO Command line overwrite Post 303031140 by milhan on Friday 22nd of February 2019 04:36:08 AM
Old 02-22-2019
I am not sure if I understand the question correctly, but you could use ctrl-u to erase everything you typed in on the line so far and enter the new command rather than pressing the backspace multiple times.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Overwrite

if i want to pipe output to a file, say, cat abc.dat > abc.txt, how do i make it replace the existing file? (9 Replies)
Discussion started by: Duckman
9 Replies

2. UNIX for Dummies Questions & Answers

overwrite problem

Hi im using the following to copy a file to a directory, the user being prompted to overwrite if the file already exists in that directory, cp -i myfile /home/brief/bin2 but this reveals the path of the directory when being prompted to overwrite (below) cp: overwrite... (2 Replies)
Discussion started by: ali999
2 Replies

3. Shell Programming and Scripting

sed command to overwrite

Hi, i have a file ver.sql with the following contents , Here i need to put a in the next line of END statment . So iam doing the following D:\>type ver.sql begin ctxsys.driimp.set_value('STOP_WORD','yours'); ctxsys.driimp.set_object('STORAGE','BASIC_STORAGE',2);... (1 Reply)
Discussion started by: mhdmehraj
1 Replies

4. UNIX for Dummies Questions & Answers

overwrite problem

my script is: awk '...mycode...' file1.txt > file2.txt and i want to overwrite file2.txt eachtime I run this script. but it says:File exists! :( I have tried awk '...mycode...' file1.txt >| file2.txt but it again says:Missing name for redirect! :confused::confused: what is this? (2 Replies)
Discussion started by: gc_sw
2 Replies

5. Shell Programming and Scripting

Better to Delete or Overwrite

Hello All, I had just a question about my Bash Script I'm currently writing. The script I have writes some text to a output file. After I write to the output file I send the file to another server to do some stuff with it. After the file sends in the script, I don't need the output/txt... (4 Replies)
Discussion started by: mrm5102
4 Replies

6. 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

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

Overwrite bash system command

Hello, The problem I met is the conflict between the default command /usr/bin/sometools, which is an very old version at system setup, and an updated one I have installed in $HOME/download-software/sometools How do I tell a third program to use the customized sometools instead of the default... (6 Replies)
Discussion started by: yifangt
6 Replies

9. Shell Programming and Scripting

Overwrite specific column in xml file with the specific column from adjacent line

I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file. Here is the file. <!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies
PDMENU(1)							     Commands								 PDMENU(1)

NAME
pdmenu - simple full screen menu program SYNOPSIS
pdmenu [options] [menufile ...] DESCRIPTION
pdmenu is a simple menu program that displays a menu from which the user can pick programs to run. Submenus are supported. When you run pdmenu , you will be presented with a menu. Simply use the arrow keys to move to the program you want to run, and press Enter to run the program. When the program ends, you will be returned to the menu. If you are running pdmenu at the linux console, and gpm is running, you can move the mouse and click to navigate through the menus. Some menu items are actually submenus, and will take you to another menu. Others may cause a text edit window to be displayed, where you can enter parameters for a command before running it. Still others may run a command, and display the output in a window. KEYS
Here are all keys you need to get around in pdmenu: [up arrow], 8, - Move up one line in the menu. [down arrow], 2, + Move down one line. [page up], [ctrl-u] Move up an entire screen. [page down], [space], [ctrl-v] Move down an entire screen. [home] Move to the first entry of the menu. [end] Move to the last entry of the menu. q Exit the current menu, or exit pdmenu if used on the first menu. Does not work in the text edit windows. (This will not work if there is also a hotkey set up for 'q', the hotkey takes precedence.) ESC Close the currently active window, and return to the previous window, or exit pdmenu if used on the first menu. [ctrl-c] Exit pdmenu immediately. [ctrl-r] Force a redraw of the screen. [enter] Launch the selected menu item. In a text edit window, closes the window. [backspace] Performs a destructive backspace in a text edit window. hotkeys Some letters of a menu item may be highlighted. These are hotkeys; simply press the highlighted letter to select the next menu item with that hotkey. OPTIONS
-h, --help Display usage summary and exit. -c, --color Use color. By default, pdmenu will display in black and white mode. If your terminal supports color, use this switch. -u, --unpark "Unparks" the cursor from the bottom of the screen. When this option is selected, the cursor moves to be on the line of the menu that is currently selected. This makes pdmenu more useable with speech synthesis systems that need to know what line is the current line on the screen. -mmenuid, --menu=menuid Instead of displaying the first menu from the menufile, select the menu with the id "menuid" and display it. -q, --quit By default, at the opening menu, 'q' will exit pdmenu. If the -q switch is specified, this will not be the case. This is useful if you want to prevent the user from ever exiting pdmenu. (This also disables control-c and the right mouse button from exiting pdmenu.) -r, --retro This makes pdmenu use an old style for displaying menus. Menus in the background don't change color, or lose their hotkeys. Note that this will also be a little bit faster than the default on slow terminals and the like. -l, --lowbit By default, pdmenu will use nice high bit line drawing characters if it thinks your terminal is capable. Sometimes it gets this wrong and you get borders that look all messed up. Then you should use this --lowbit switch to force it to use low bit line drawing characters. -n, --numeric Disables the use of the keys 2 and 8 for moving up and down. This is useful if you want to use numbered hotkeys. menufile ... Specify a menu definition file or files to use. If you specify multiple files, they will all be loaded in together. By default, the first menu in the first menufile will be displayed when pdmenu starts, but this can be overridden by the --menu= option. If menu- file is "-", pdmenu will read standard input as a menu file. NOTES
To use the mouse to cut and paste as usual, hold down on the shift key when you use the mouse. FILES
/etc/pdmenurc Default config file. See pdmenurc(5) for details. ~/.pdmenurc If this exists, it overrides /etc/pdmenurc. See pdmenurc(5) for details. ENVIRONMENT
COLORTERM Set this variable to make pdmenu to use color by default. DISTRIBUTION
Redistribution is subject to the GNU public license. BUGS
See the file BUGS that came with pdmenu for the current buglist. AUTHOR
Joey Hess, <joey@kitenet.net>. SEE ALSO
pdmenurc(5) 1.3.2 August 23 2011 PDMENU(1)
All times are GMT -4. The time now is 05:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy