Sponsored Content
Top Forums Shell Programming and Scripting Convert vi editing to text editing Post 302962134 by thummi9090 on Tuesday 8th of December 2015 04:42:49 PM
Old 12-08-2015
Convert vi editing to text editing

Dear Guru's

I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response.


Srini
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Text Editing

Hello everybody, I have a sorted text file. some of the lines appear twice or even more. is there an unix utility that removes the extra appearences? Thanks, Ido. (7 Replies)
Discussion started by: ginodii
7 Replies

2. UNIX for Dummies Questions & Answers

Text editing on iPhone using ed

Hi all, I'm trying to edit a file using ed on an iphone. I am trying to edit a conf file and have managed to get to the directory where the default.conf file is located, however, when I type ed default.conf all i get is a number and then a blank line and a question mark which is why I am... (1 Reply)
Discussion started by: drewcifer
1 Replies

3. Shell Programming and Scripting

text file editing

Hi, I need some help in text manipulation. I have an input file like this: 7629 "WPCW 19 - CW/AM1, WPCB 40 - FAMN/CORNER, WPCB-DT1 50 - FAMN/CORNER, " W35AW - Various Shopping Pgms W41CF - TBN W47CV - TBN WLLS-LP 49 - AM1 WATCH WPXI 11 N & WPIX 11 CW 1234 "WPCW 19 - CW/AM1,... (26 Replies)
Discussion started by: injeti
26 Replies

4. Shell Programming and Scripting

Text editing script does everything but edit text.

I wrote this script to create and edit a large number of websites based on a template site and a collection of text files which have the relevant strings in them delimited by colons. I run it and the shell doesn't produce any errors, but when it gets to the for loop where it actually has to edit... (2 Replies)
Discussion started by: afroCluster
2 Replies

5. Shell Programming and Scripting

Editing text using AWK

France : 40 : John Persia : 50 : John -----Database What i am trying to achieve is to search for a book, and replave the title with the new title echo -n "Title:" read Title echo -n "Author:" read Author echo "new Title" read NewTitle awk 'BEGIN {... (11 Replies)
Discussion started by: gregarion
11 Replies

6. Programming

Editing a specific liine of text file - C++

Is there any way to erase all the contents of a specific line of a text file and then write something on it? e.g. test.txt.old: qwert asdfg zxcbv=0 test.txt.new qwerty asdfg hello=0 is this possible with C++ ?:confused: (1 Reply)
Discussion started by: hakermania
1 Replies

7. UNIX for Dummies Questions & Answers

awk text editing

Dear all, I'm starting to learn programming, and I'm having some problem with awk text editing. I'm having a huge text file, and my goal is to print "something" before every 4th row starting from the second row. File example: AAAAA BBBBBB CCCCC DDDDD AAAAAAA BBBBBBBB CCCCCCC... (2 Replies)
Discussion started by: Higgo
2 Replies

8. Shell Programming and Scripting

Help needed editing text file using the terminal

Hi, I have text file with the header like this tracking_id condition replicate FPKM XLOC_000001 alpha 1 10.3199 XLOC_000001 alpha 0 10.3686 XLOC_000001 alpha 2 15.5619 ... With the first column being genes, the second being the condition, the third... (5 Replies)
Discussion started by: 4galaxy7
5 Replies

9. UNIX for Dummies Questions & Answers

Editing long text file

Good morning all, I have a machine running IRIX and I need to edit a text file on the terminal that is literally thousands of lines. Does anyone know the most efficient way to edit portions of files like these? Obviously simply using the vi command isn't going to work since I get a too many lines... (1 Reply)
Discussion started by: James C
1 Replies

10. UNIX for Beginners Questions & Answers

Text editing/manipulation

Hello all. I need to rearrange a very long text file with the following format. The number of lines in each block is variable, but is between 1 and 10. Any hints what command could I use for this? Thank you. SAMPLE 2600 15 3453 159 3970 486 4327 760 4498 ... (3 Replies)
Discussion started by: yirgacheffe
3 Replies
whatnow(1mh)															      whatnow(1mh)

Name
       whatnow - prompting front-end for send

Syntax
       whatnow [ options ] [ file ]

Description
       After  you  have  finished  editing a draft message in or the program prompts you for the next required action.	Press <Return> at the What
       now? prompt to see a list of the available responses.  These responses are:
       display [options]
       edit [editor] [options]
       list [options]
       push [options]
       quit [-delete]
       refile [options] +folder
       send  [options]
       whom  [options]
       For more information on the options available with these commands, see the following reference pages:

       Use display if you have been using or and want to see the original message.  Use edit if you want to continue editing the draft.  Use  list
       to display the draft message.  If you use push, operates in the background and frees your terminal while the message is being sent.

       Use quit to exit from and to save the draft message.  The -delete option to quit will exit from and delete the draft message.

       Use  refile +folder to refile the draft message in a specified folder.  The send response will cause the message to be delivered.  Use whom
       to find out who will receive the mail when it is sent.

       Unless the -noedit option is given, the editor starts when is invoked.

       For the edit response, you can specify an editor if you wish to override the editor specified in your (R)file.  If you  specify	an  editor
       with  the edit response, any valid option to the editor is valid.  Similarly, for the send and whom responses, any valid option to send and
       whom commands, respectively, are valid.

       For the push response, use any valid option to MH invokes with the -push option.

       For the refile response, any valid option to the is valid.  The is the element of your mail profile  which  defines  the  program  used	to
       refile messages in another folder.  For more information, see

       For  the display and list responses, any valid argument to the is valid.  If any non-option arguments are present, then the pathname of the
       draft is excluded from the argument list given to the (this is useful for listing another MH message).  The is the  element  in	your  mail
       profile which defines the program used to display draft messages on your screen.  For more information, see

       See  for further information about how editors are used by MH.  It also describes and and shows how complex variables can be used to direct
       the actions performed by

       Although is usually invoked by other commands, you can use it as a separate command.  You can run on a named file by specifying the file as
       the  file argument.  If you do not give an absolute pathname (one beginning with a / or ./ or ../ ), assumes that the named file is in your
       current working directory.  If you want to run on an existing message, use the -draftfolder and -draftmessage options.

Options
       -draftfolder +folder
       -nodraftfolder
		 Specifies the folder in which searches for the draft message.	By default, the current message in the named folder is	used.	If
		 you wish to specify another message, use the -draftmessage option.  For more information on using a draft folder, see The -draft-
		 folder option can be set up in your user profile; see for more information.

       -draftmessage msg
		 Specifies the draft message to be used.  If you specify a folder with the -draftfolder option, the -draftmessage option takes the
		 number  of a message in that folder.  If you do not specify a folder, -draftmessage takes the name of a file.	If you do not give
		 an absolute pathname (one beginning with a / or ./ or ../ ), -draftmessage assumes that the file is located in your  Mail  direc-
		 tory.	(This is different from the file argument to which assumes that the file you name is in your current working directory.)

       -editor editorname
		 Specifies  the  name  of  the	editor you want to use to edit the draft message.  Any legal ULTRIX editor can be specified.  This
		 option is used only if you select the edit response to the What now? prompt.

       -help	 Prints a list of the valid options for this command.

       -noedit	 Prevents the initial invocation of an editor when an MH command is run.  Normally, when you enter an MH command such  as  or  the
		 program  is  called to start the initial edit of the draft message.  If you add this option to the whatnow entry in your the ini-
		 tial edit of the draft message is disabled.  This is a convenient way of disabling this edit for all  MH  commands,  rather  than
		 adding the -noedit entry to the entries for the individual commands in

       -prompt string
		 Specifies the prompt used by The prompt you receive when you invoke can be specified as a string with this option.  If the prompt
		 contains spaces, you must enclose the entire string in double quotes (" ").  The default prompt is What now?

Restrictions
       If the sendproc entry in your is uses a built-in program rather than running the regular If you	define	your  own  sendproc  program,  you
       should not not call it as will not run it.

Examples
       In the following example, takes the current message in the folder and asks what you want to do with it:
       % whatnow -draftfolder +drafts
       What now?

       In the following example, takes message 6 from the folder
       % whatnow -draftfolder +drafts -draftmessage 6
       What now?

       The following example sets the prompt to be Now What?:
       % whatnow -prompt "Now What?"
       Now what?

Profile Components
       Path:		  To determine your MH directory
       Draft-Folder:	  To find the default draft folder
       Editor:		  To override the default editor
       lasteditor-next:   To name an editor to be used after
			  exit from lasteditor
       fileproc:	  Program to refile the message
       lproc:		  Program to list the contents of a message
       sendproc:	  Program to send the message
       whomproc:	  Program to determine who a message would go to

Files
       The user profile.

See Also
       comp(1mh), send(1mh), whom(1mh)

																      whatnow(1mh)
All times are GMT -4. The time now is 07:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy