Sponsored Content
Full Discussion: Seeing previous command
Top Forums UNIX for Dummies Questions & Answers Seeing previous command Post 302074977 by JackieChan on Monday 29th of May 2006 06:40:09 AM
Old 05-29-2006
Seeing previous command

Guys,
In work we have just gotten a new HP 9000 server and I'm trying to set it up so that if I press <Up arrow> key I can see the command I typed in last(and press enter to run it again).
Can anyone advise how to set this up. One friend suggested I touch a file called .toucheditXXXX (I cant remember the full name).
I tried googling for this but now joy.
Appreciate any help
Cheers
JC
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

getting the previous command

Hello all I'm on SunOS5.9 and I'm trying to make the arrow keys work as in DOS ..get the previous command , etc .. I searched this site and got an answer. I pasted the following code to my .kshrc file in my home directory...It still does not seem to work ...Am I missing anything here ? I'm... (5 Replies)
Discussion started by: luft
5 Replies

2. UNIX for Advanced & Expert Users

Previous Command

We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc. My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (0 Replies)
Discussion started by: vskr72
0 Replies

3. Shell Programming and Scripting

Previous Command

We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc. My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (1 Reply)
Discussion started by: vskr72
1 Replies

4. UNIX for Dummies Questions & Answers

Previous Command

We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc. My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I... (2 Replies)
Discussion started by: vskr72
2 Replies

5. UNIX for Dummies Questions & Answers

previous,next command in unix

Hi , after pressing down arrow,up arrow I want to find previous,next command in unix wat can i do for tat plz tell me I am accesing unix server thru telnet. my shell prompt ksh (4 Replies)
Discussion started by: arulkumar
4 Replies

6. HP-UX

Previous command

Hi, i would like to retrieve (only retrieve, not execute) a previous command which i executed on the command prompt. I tried the 'up arrow' key, but its not working. Instead,it showed me some funny characters. I searched around and i found the way to do it was using the way below. Several... (5 Replies)
Discussion started by: new2ss
5 Replies

7. UNIX for Dummies Questions & Answers

Repeat previous unix command

Hi all, Is there a way to bring back the previous unix command without retyping? I tried the "arror up" key, and it seems not working (sun solaris). What is the correct way? Thanks! (4 Replies)
Discussion started by: syang68
4 Replies

8. Shell Programming and Scripting

Referring from the print of the previous command

Hi, I am a newbie in SHell Programming. I want to ask something about referring the result of the previous command in Shell-Prog. For example : bnm@dsds~> ifconfig eth0 Link encap:Ethernet HWaddr 00:0B:CD:85:A5:8A inet addr:192.168.0.2 Bcast:192.168.0.225 Mask... (2 Replies)
Discussion started by: bobb
2 Replies

9. UNIX for Dummies Questions & Answers

date command - getting previous month

Hi, On any given day, I want to capture the month that has gone by - said otherwise, how do I capture last month? expr date '+%m' - 1 Above expression is giving error. Please advise thanks ---------- Post updated at 09:28 AM ---------- Previous update was at 09:11 AM... (1 Reply)
Discussion started by: ab_2010
1 Replies

10. Shell Programming and Scripting

Retrieving previous command in a script

i know from the command line, the symbol $_ is used to get the last command that was run. however, id like to replicate this within a script. meaning, how do i do something like this: #!/bin/sh ps -ef | egrep talling StoreThisLastCommandA=$_ awk '/error/ {print $3}' /tmp/test... (5 Replies)
Discussion started by: SkySmart
5 Replies
trans(1)						      General Commands Manual							  trans(1)

NAME
trans - translation tool for use with source message catalogs SYNOPSIS
trans [-c] [-o name] file.msg OPTIONS
Display comment lines beginning with a dollar sign ($) for translation, in addition to messages. Call the output file name. The default is output file name is trans.msg. DESCRIPTION
The trans command assists in the translation of source message catalogs. The command reads input from file.msg and writes its output to either a file named trans.msg or a file you name on the command line. The command displays file.msg in a multiple window screen that lets you simultaneously see the original message, the translated text you enter, and any messages from the trans command. This multiple window screen is easier to use for translating messages than a single window screen. The top window in the multiple window screen displays the text in the message source file file.msg. The editor displays the current message in reverse video. In the center window, trans displays a prompt that asks you to enter a translated message. You use a control key editor to move the cursor and delete text in the center window. The control key sequences are defined as follows: ------------------------------------------ Key Sequence Meaning ------------------------------------------ CTRL/k Display control key help CTRL/h Back space CTRL/l Forward space CTRL/w Back word CTRL/f Forward word CTRL/e Move to end of input CTRL/b Move to beginning of input CTRL/n Next line CTRL/p Previous line CTRL/u Delete input CTRL/i Insert mode (default) CTRL/r Replace mode DEL Delete previous character ------------------------------------------ If you need to span more than one line with the translated text, type a backslash () and press the RETURN key to enable line continuation. After you finish entering the translated text, press the RETURN key to signal that you have finished translating that message. The bottom window displays any messages generated by trans. If an error occurs, trans prompts you to re-enter the entire line, including the message label or number. RESTRICTIONS
Your terminal must be 80 columns by 24 lines for trans to display its three-window screen. You cannot interrupt a trans session and restart it at the point you stopped. You must complete the all the changes to a file before exit- ing a file. SEE ALSO
extract(1), gencat(1), strextract(1), strmerge(1) Writing Software for the International Market trans(1)
All times are GMT -4. The time now is 04:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy