Sponsored Content
Full Discussion: Removing blank spaces
Operating Systems Solaris Removing blank spaces Post 302544175 by vivek.goel.piet on Wednesday 3rd of August 2011 05:51:35 AM
Old 08-03-2011
Hi Rojer,

Hope your query is answer by now but I would also like to point you towards the use of
Code:
screen

command

This screen command creates a new screen under a same window and it acts as if there are 2 sessions running.

Try this screen concept and revert back if it helps you cause.
Quote:
Originally Posted by rogerben
Hi ,
I want to go out of vi editor temporarily and execute a command in command prompt and again going back to the editor . Is it possible . Any help on this is really helpful.

1. Need to open vi
2. Temporarily come out and execute a command and go back to vi editor
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Removing blank spaces from a file?

Guys, I need some help... how can I remove the blank spaces between the lines below? (between the date and the hour fields) 21/05/07 00:05:00 99 21/05/07 00:10:01 99 21/05/07 00:15:00 99 21/05/07 00:20:00 99 21/05/07 00:25:00 99 I want to make the file... (4 Replies)
Discussion started by: dfs
4 Replies

2. UNIX for Dummies Questions & Answers

string with blank spaces

I have a file that has dates like this: date FINAL_RESULT; 7 date FINAL_RESULT; 2 date FINAL_RESULT; 5 With this command: seira=`cut -f2 -d\; tes.txt` i take the date FINAL RESULTs and i store them on variable seira.then seira look like this: 6 3 8 I want to read seira and make a sum of all... (4 Replies)
Discussion started by: psalas
4 Replies

3. Shell Programming and Scripting

Handling blank spaces

Hi, I am trying to replace a specific column values in a csv file with double quotes when I am find embedded spaces with in the fields. Example: SNO,NAME,ZIPCODE,RANK,SEX,ADDRESS 1,Robert,74538,12,34, M,Robert Street, NY 2,Sam,07564,13,M,12 Main Ave, CA 3,Kim, Ed,12345,14,M,123D ,... (1 Reply)
Discussion started by: techmoris
1 Replies

4. Shell Programming and Scripting

Removing blank spaces, tab spaces from file

Hello All, I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out. My file is like this (<b> means one blank space, <t> means one tab space)- $ cat file NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies

5. UNIX for Dummies Questions & Answers

Removing blank spaces from text files in UNIX

Hello, I am an super newbie, so forgive my sheer ignorance. I have a series of text files formatted as follows (just showing the header and first few lines): mean_geo mean_raw lat lon 0.000 0 -70.616 163.021 0.000 0 -70.620 163.073 0.000 ... (8 Replies)
Discussion started by: vtoniolo
8 Replies

6. Shell Programming and Scripting

how to read blank spaces

hi i have a file which store some data.the contents of my file is data1:data2 data3:data4 i have a script which read this file correct="$(cat /root/sh | cut -d: -f1)" i used this syntax..please help me which syntax is used to read blank spaces.and then remove it and after that how to read... (1 Reply)
Discussion started by: shubhig15
1 Replies

7. Shell Programming and Scripting

removing blank spaces in a script

Hi I am writing a shell to run sqlplus scripts. i found a issue in my scripts that oracle will not spool a file if there is blank spaces in the word like /backup dir/scriptrelease/1_DDL or /backupdir/script release/2_DDL can we write some thing in the shell to make "/backup dir" to... (1 Reply)
Discussion started by: srichunduru
1 Replies

8. Emergency UNIX and Linux Support

Removing ONLY UNIQUE blank spaces with sed?

Hi, I have data that looks similar to this: In which the sentences are written horizontally and the beginning of a sentence is indicated by a 1 in the first column and the number increments until the last item of the sentence. The end of the sentence and the beginning of the next is then indicate... (1 Reply)
Discussion started by: owwow14
1 Replies

9. Shell Programming and Scripting

Removing blank/white spaces and special characters

Hello All , 1. I am trying to do a task where I need to remove Blank spaces from my file , I am usingawk '{$1=$1}{print}' file>file1Input :- ;05/12/1990 ;31/03/2014 ; Output:- ;05/12/1990 ;31/03/2014 ;This command is not removing all spaces from... (6 Replies)
Discussion started by: himanshu sood
6 Replies

10. UNIX for Advanced & Expert Users

Delete blank spaces and blank lines in a file

Hi Gurus, Somebody can say me how to delete blank spaces and blank lines in a file unix, please. Thank you for advanced. (10 Replies)
Discussion started by: systemoper
10 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 02:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy