Sponsored Content
Full Discussion: Query about opening the file
Top Forums Shell Programming and Scripting Query about opening the file Post 302813403 by jaiseaugustine on Monday 27th of May 2013 08:00:51 AM
Old 05-27-2013
That means, you are reading a file and you want to do some editing in that file? If so, press 'i' and start typing. press 'Esc' to go back.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

opening a file

im trying to open a file in my bin directory and the farthest i can get is into the folder but not the actual file itself i use text edit as the editor. when i try to open the file it says it doesn't exist here is what i type cd bin open cmnds (dir. which it is under) open test no such... (4 Replies)
Discussion started by: hiei
4 Replies

2. Programming

Opening a file during FTP

I need to process a file in real time as it is being FTPed from a remote server. In my test environment, I wrote a process that would: 1) Open the file - fopen(filename, "r") 2) Go to the offset where I left off on the previous itteration (fseek) 3) Read 2K blocks and append each block to a... (1 Reply)
Discussion started by: ceaker
1 Replies

3. Shell Programming and Scripting

how to know whether that file has eol or noeol before opening that file in VI editor

Hi, I want to check whether file has EOL or NOEOL before opening this file in VI editor. My file is very big its in terms of 15-20 MB. I am using ksh for this. When we opened the file in vi editor, normally at last line we are able to see whether this is eol or noeol file. But i does want... (1 Reply)
Discussion started by: HariRaju
1 Replies

4. Shell Programming and Scripting

Deleting lines inside a file without opening the file

Hi, Just consider there are around 10 lines in a file. Now is it possible to delete the first 2 lines in the file without opening the file. No matter whatever the content of the file is, I just wanna delete the first 2 lines without opening the file. Is that possible? If so, please help me out.... (3 Replies)
Discussion started by: toms
3 Replies

5. UNIX for Dummies Questions & Answers

Opening a file in perl

Hi I need to open a file if a condition(for example a if a regular expression) is met. How do i do this ? open (file) if (some regex)..... (3 Replies)
Discussion started by: manutd
3 Replies

6. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

7. Shell Programming and Scripting

Problems with file opening

Hi All, I have a file test.dat. When I view this file using code1 , that time no problem. But when I open this file using code2, that time some lines are missing. I don't know why is the problem occurred. I already convert dos2unix fromat. But problem is not solving. Please help me about the... (3 Replies)
Discussion started by: mnmonu
3 Replies

8. Shell Programming and Scripting

Xmllint - Xml-file problem --ods file not opening

Dear All, this is my first post on this Forum, glad to be here. I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted. When opening the document I get this EM: read error format error discovered in the file in sub-document content.xml at 2,337040(row,col). So I... (3 Replies)
Discussion started by: jameslast
3 Replies

9. Shell Programming and Scripting

Opening a file in vi and automatically save and quit this file using shell script

Hi friends, In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script. the code segment is: ------------------------------------------------------------ cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies

10. UNIX for Dummies Questions & Answers

How to read a file without opening the file and delete last line?

I have file called "text". The contents are as below : aaa bbb ccc ddd eee ffff ddd hhhh iiii I want to read this file without opening and and delete the last line. How can it be done? (4 Replies)
Discussion started by: the_hunter
4 Replies
prompter(1)						      General Commands Manual						       prompter(1)

NAME
prompter - prompting editor front-end (only available within the message handling system, mh) SYNOPSIS
prompter [options] file OPTIONS
Adds text to the beginning of the message body, so that the rest of the body follows. This is useful for the forw command. You can sup- press this behavior by using the -noprepend option. Causes the text not to be displayed on your terminal if the draft already contains text in the message-body. This is useful for low-speed terminals. You can suppress this behavior by using the -norapid option. Specifies the line-editing characters, where char may be a character or nn, where nnn is the octal value for the character. Specifies the line- editing characters, where char may be a character or nn, where nnn is the octal value for the character. The first argument to prompter which is not an option is taken as the name of the draft file, and subsequent non-option arguments are ignored. The default settings for prompter are: -prepend -norapid DESCRIPTION
The prompter editor is a rudimentary editor provided by comp, dist, forw, and repl. It is automatically called by the above commands; you do not need to specify it. The prompter editor allows rapid composition of messages. It is particularly useful to network and low-speed (less than 2400 baud) users of MH. The prompter editor is an MH program. Although is not invoked directly, it can have its own profile entry with options; see mh_profile(4). The comp, dist, forw, and repl commands invoke prompter in one of three ways: when invoked with the -editor prompter option; by an entry in the file; or by a command at the What now? prompt. If you do not specify an editor in any of these ways, MH provides prompter as the default editor for all of these commands. For information on how to use a different editor with MH commands, see the reference pages for the appropriate commands, and also mh_pro- file(4). Composing a Message with prompter When you create a message with an MH command, the mail system provides a message template for you to fill in. This template consists of two parts: the message header, comprising a number of header fields; and the body of the message, which is the area where you type the text of your message. The prompter editor displays each header field, one at a time, for you to fill in. Fill in the component by typing the text that you want. Type <RETURN> to move onto the next component. Once you have moved on from a header field, you cannot edit what you have entered. If you want to leave a header field empty, simply type <RETURN>. You can continue a header field over one line by typing a back-slash () before the <RETURN>. Continuation lines must start with a blank (a space or a tab). The start of the message body is indicated by a blank line or a line of dashes. If you are creating a new message, the cursor is placed beneath this line to allow you to enter text. If there is already some body text in the message (for example, if you are using an existing draft, or if you are forwarding a message), you will receive a prompt: --------Enter additional text or: --------Enter initial text The cursor is placed under the prompt to allow you to enter text. To finish the message, type <CTRL/D>. You will then receive a prompt asking What now?. See whatnow(1) for more details of responses. An interrupt, usually <CTRL/C>, during component typing will abort prompter and the MH command that invoked it. An interrupt during mes- sage-body typing is equivalent to <CTRL/D>, for historical reasons. RESTRICTIONS
The prompter editor will not work with files with nulls in them. PROFILE COMPONENTS
prompter-next: To name the editor to be used on exit from prompter Msg-Protect: To set protections when creating a new draft FILES
The user profile. Temporary copy of message. SEE ALSO
comp(1), dist(1), forw(1), repl(1), whatnow(1), mh_profile(4) prompter(1)
All times are GMT -4. The time now is 02:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy