Sponsored Content
Full Discussion: Quick Question: Sorting
Top Forums UNIX for Dummies Questions & Answers Quick Question: Sorting Post 302666039 by lucshi09 on Tuesday 3rd of July 2012 02:47:58 PM
Old 07-03-2012
this is really great everyone... thank you so much for your prompt responses! Super helpful indeed! Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Quick Question

I know in DOS, when you want to pull up your last/previous command, you hit the up/down arrows. How do you do that with UNIX? (3 Replies)
Discussion started by: Tracy Hunt
3 Replies

2. UNIX for Dummies Questions & Answers

Quick Question

Hello There! I am trying to write this SIMPLE script in Bourne Shell but I keep on getting syntax errors. Can you see what I am doing wrong? I've done this before but I don't see the difference. I am simply trying to take the day of the week from our system and when the teachers sign on I want... (7 Replies)
Discussion started by: catbad
7 Replies

3. UNIX for Advanced & Expert Users

Quick VI question

This "SHOULD" be a simple question, but looking through several books has turned up nothing, so I turn once again to the experts!! How do you vi a file so that you can see special characters. I believe my /etc/passwd file is being corrupted during an upgrade process, however the files... (6 Replies)
Discussion started by: Recon
6 Replies

4. Shell Programming and Scripting

quick question

does anyone know what $? means? i echoed it on my box (running AIX Korn shell) and got 127 (2 Replies)
Discussion started by: penfold
2 Replies

5. UNIX for Dummies Questions & Answers

Quick Question

Hi, I am new to UNIX, and am learning from this tutorial : http://www.ee.surrey.ac.uk/Teaching/Unix/index.html It keeps telling me to files downloaded from the internet (like .txt files) to the directory, and I dont know how to. How do I add .txt files to my directory? Thanks. (6 Replies)
Discussion started by: IAMTHEEVILBEAN
6 Replies

6. UNIX for Dummies Questions & Answers

Quick question

Hi, Is there a simple way, using ksh, to find the byte position in a file that a stated character appears? Many thanks Helen (2 Replies)
Discussion started by: Bab00shka
2 Replies

7. UNIX for Dummies Questions & Answers

Quick question

Hello all, Quick question from a fairly new to Unix developer. if then completedLogFile=$logfile.$(date +%Y%m%d-%H:%M:%S) mv $logfile $completedLogFile fi I understand that this portion of code is simply copying a tmp logfile to a completed logfile when a condition is true. The... (2 Replies)
Discussion started by: JohnnyBoy
2 Replies

8. AIX

quick question

Hi, At best I'm a junior admin with a big problem. My developers have got my root password and mgmt insists they need it. I can't even change it when people knowing it leave. I'm certain they've hardcoded it into routines. I've searched my servers and grepped everything & can't find it. ... (5 Replies)
Discussion started by: keith.m
5 Replies

9. Shell Programming and Scripting

quick question

I am using sed to find a pattern in a line and then I want to retain the pattern + the rest of the line. How is this possible? ie: line is: 14158 05-15-08 20:00 123-1234-A21/deliverable/dhm.a search for 123-1234-A21 ie: echo $line | sed 's/.*\(\{3\}-\{4\}-\{3\}\{5\}\).*/\1/' ... (1 Reply)
Discussion started by: phreezr
1 Replies

10. UNIX for Dummies Questions & Answers

Quick question

Hi guys Quick question Im creating an FTP server and im chrooting each user to there home directory blah blah. Ive also setup scponly so there locked etc. Im a novice at unix and have just reaslised the primary group of scponly is the username of one of the ftp users... which im sure... (1 Reply)
Discussion started by: mokachoka
1 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 10:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy