Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to removed chr(10) characters in a file Post 302318474 by sandeep_1105 on Thursday 21st of May 2009 03:43:50 PM
Old 05-21-2009
how to removed chr(10) characters in a file

Hi,

How do we remove an extra new line in a file. New line in ascii is called chr(10). Suppose we have a file as:

12345
98765
------
------

From the above i represented new line with dashed lines. Basically i have 2 new lines with white space at the end of the file. How do i removes these 2 lines.

Thanks
Sandeep
 

10 More Discussions You Might Find Interesting

1. Solaris

after init all /tmp file has been removed

I'm new in Solaris server After the system support reboot the Solaris server, all the files in /tmp has been removed, is that normal under Solaris or under different init level will get different result? which init level will do that? (5 Replies)
Discussion started by: yesthomas
5 Replies

2. Shell Programming and Scripting

Please Help. Strings in file 1 need to be searched and removed from file 2

Please help. Here is my problem. I have 9000 lines in file a and 500,000 lines in file b. For each line in file a I need to search file b and remove that line. I am currently using the grep -v command and loading the output into a new file. However, because of the size of file b this takes an... (4 Replies)
Discussion started by: mjs3221
4 Replies

3. Linux

file removed

Hi Team, I have deleted a file accidentally by using rm command. I am not the root(admin) user. Can you please let me know how to get that .tex file? (2 Replies)
Discussion started by: darling
2 Replies

4. Red Hat

How to update rpm database regarding removed file of a package?

For Suppose, I have installed a package having files file1, file2 and file3. After installation, I removed the file "file3". But "rpm -qf file3" is giving the package name, even file3 was not there. And also "rpm -ql package" is also displaying all 3 files. How can i update rpm database about... (6 Replies)
Discussion started by: snreddy_gopu
6 Replies

5. Programming

The fwrite function is not returning error, if the file was removed.

The fwrite function call is not returning error, when the file it writes to is removed, please advise on how to find if the file already opened and being written by a program is removed manually or by some other process. please see the code below, #include<stdio.h> #include<stdlib.h> ... (3 Replies)
Discussion started by: Kesavan
3 Replies

6. Solaris

File system full - not removed: No space left on device

Does anyone have any advise on trying to clean up a full filesystem? I can't rm any files because of the follow: not removed: No space left on device Any help would be very much appreciated. (10 Replies)
Discussion started by: craigsky
10 Replies

7. Shell Programming and Scripting

Error removed from file

Below is a flowchart of a program. Most everything works as expected, but there are a couple of issues that I need some expert help on. The check function was setup initially for a single user input. The input has been modified to allow for multiple inputs, so the code below does not work. My... (15 Replies)
Discussion started by: cmccabe
15 Replies

8. UNIX for Beginners Questions & Answers

File Containing Extra delimiter should be removed

The input file is this: a|b|c|d x|y|z|n||||||||| p|q|r|s||| g|h|i| w|e|r|| Now as per requirement , each row should have only 3 delimiter. Now the 2nd row & last row has an extra delimiter, How to remove that ? In some large file having 100K data , there can be 100 such rows having... (4 Replies)
Discussion started by: ikdKunal
4 Replies

9. UNIX for Beginners Questions & Answers

File Management: Removing of files from Server2 IF the same file is removed from Server1.

Hi Folks, I have a requirement of file management on different servers. Source Server is SERVER-A. Two servers will fetch files from SERVER-A: SERVER1 and SERVER2. 4th SERVER is SERVER-B, It will fetch files from SERVER1. If SERVER1 goes DOWN, SERVER-B will fetch pending files from... (2 Replies)
Discussion started by: Raza Ali
2 Replies

10. Shell Programming and Scripting

Recover the original file once removed

Hi All, Is there is any machanisim, once delete the file can we restore it. Thanks (8 Replies)
Discussion started by: bmk123
8 Replies
PROMPTER(1)							     [nmh-1.5]							       PROMPTER(1)

NAME
prompter - prompting editor front-end for nmh SYNOPSIS
prompter [-erase chr] [-kill chr] [-prepend | -noprepend] [-rapid | -norapid] [-doteof | -nodoteof] file [-version] [-help] DESCRIPTION
Prompter is an editor front-end for nmh which allows rapid composition of messages. This program is not normally invoked directly by users but takes the place of an editor and acts as an editor front-end. It operates on an RFC-822 style message draft skeleton specified by file, normally provided by the nmh commands comp, dist, forw, or repl. Prompter is particularly useful when composing messages over slow network or modem lines. It is an nmh program in that it can have its own profile entry with switches, but it is not invoked directly by the user. The commands comp, dist, forw, and repl invoke prompter as an editor, either when invoked with -editor prompter, or by the profile entry "Editor: prompter", or when given the command edit prompter at the "What now?" prompt. For each empty component prompter finds in the draft, the user is prompted for a response; A <RETURN> will cause the whole component to be left out. Otherwise, a `' preceding a <RETURN> will continue the response on the next line, allowing for multiline components. Continua- tion lines must begin with a space or tab. Each non-empty component is copied to the draft and displayed on the terminal. The start of the message body is denoted by a blank line or a line of dashes. If the body is non-empty, the prompt, which isn't written to the file, is --------Enter additional text or (if -prepend was given) --------Enter initial text Message-body typing is terminated with an end-of-file (usually CTRL-D). With the -doteof switch, a period on a line all by itself also signifies end-of-file. At this point control is returned to the calling program, where the user is asked "What now?". See whatnow (1) for the valid options to this query. By using the -prepend switch, the user can add type-in to the beginning of the message body and have the rest of the body follow. This is useful for the forw command. By using the -rapid switch, if the draft already contains text in the message-body, it is not displayed on the user's terminal. This is useful for low-speed terminals. The line editing characters for kill and erase may be specified by the user via the arguments -kill chr and -erase chr, where chr may be a character; or ` nn', where "nnn" is the octal value for the character. An interrupt (usually CTRL-C) during component typing will abort prompter and the nmh command that invoked it. An interrupt during mes- sage-body typing is equivalent to CTRL-D, for historical reasons. This means that prompter should finish up and exit. The first non-flag argument to prompter is taken as the name of the draft file, and subsequent non-flag arguments are ignored. FILES
$HOME/.mh_profile The user profile /tmp/prompter* Temporary copy of message PROFILE COMPONENTS
prompter-next: To name the editor to be used on exit from .B prompter Msg-Protect: To set mode when creating a new draft SEE ALSO
comp(1), dist(1), forw(1), repl(1), whatnow(1) DEFAULTS
`-prepend' `-norapid' `-nodoteof' CONTEXT
None HELPFUL HINTS
The -rapid option is particularly useful with forw, and -noprepend is useful with comp -use. The user may wish to link prompter under several names (e.g., "rapid") and give appropriate switches in the profile entries under these names (e.g., "rapid: -rapid"). This facilitates invoking prompter differently for different nmh commands (e.g., "forw: -editor rapid"). BUGS
Prompter uses stdio(3), so it will lose if you edit files with nulls in them. MH.6.8 11 June 2012 PROMPTER(1)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy