Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Removing blank spaces from text files in UNIX Post 302418344 by vtoniolo on Tuesday 4th of May 2010 02:50:18 AM
Old 05-04-2010
What if I am doing a whole bunch of files? Can I use wildcards for batch processing?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

To remove Continous blank spaces from a file in UNIX

All... I want to remove blank spaces in file . I just leraned that we can use " cat <Input filename> | tr -s ‘ ‘ > <Target file name> " i also know with SED we can replace a blank space by other character by sed s/ /*/g filename. Please let me know how can i do that by... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

2. 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

3. Shell Programming and Scripting

Remove blank spaces in a text file...

Hi, I have this problem that there are blank spaces in my text file... i want to remove them line 1 line 2 line 3 I want to remove the space between line 2 and line 3... I tried sed... it work but it prints the whole text file at the command prompt which i dont want.... sde i tried was... (4 Replies)
Discussion started by: bhagya2340
4 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. Shell Programming and Scripting

Replace blank spaces with semicolon - text file

Hi all, Been trying to find a solution to this, I'm sure its a sed 1 liner, but I don't know sed well enough to work it out... I have a text file in the following format: 431 666 1332 2665 0.24395 432 670 ... (3 Replies)
Discussion started by: mpcengineering
3 Replies

6. 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

7. Solaris

Removing blank spaces

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 (6 Replies)
Discussion started by: rogerben
6 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. Shell Programming and Scripting

Add Blank Spaces in text, to perform beter alignment of the string

Hi Guru, I need some advice on how to add blank spaces to the code, rather than me just adding <space-bar spaces> which does not work. Current output of the code File System Backed Up - ALL_LOCAL_DRIVES Daily - Incremental Backup Schedule - 1 Month Retention • 7pm - PRD... (2 Replies)
Discussion started by: Junes
2 Replies
mh-mail(5mh)															      mh-mail(5mh)

Name
       mh-mail - message format for MH message system

Description
       MH  processes  messages	in  a  particular  format.  Although neither Bell nor Berkeley mailers produce message files in the format that MH
       prefers, MH can read message files in that format.

       Each user has a maildrop that initially receives all messages processed by

       The command reads from the maildrop and incorporates the new messages found there into the user's own folder.  The maildrop consists of one
       or more messages.

       Messages  are  expected to consist of lines of text.  Graphics and binary data are not handled.	No data compression is accepted.  All text
       is in ASCII 7-bit data.

       The general memo framework of RFC 822 is used.  A message consists of a block of information in a rigid format, followed  by  general  text
       with  no  specified  format.  The rigidly-formatted first part of a message is called the message header; the free-format portion is called
       the body.  The header must always exist, but the body is optional.  These parts are separated by a blank line or by a line of dashes.   The
       following example shows the standard default MH mail header:
       To:
       cc:
       Subject:
       --------

       The  header  is composed of one or more header items.  Each header item can be viewed as a single logical line of ASCII characters.  If the
       text of a header item extends across several real lines, the continuation lines are indicated by leading spaces or tabs.

       Each header item is called a component and is composed of a keyword or name, along with associated text.  The keyword begins  at  the  left
       margin, and is terminated by a colon (:).  It cannot contain spaces or tabs, and cannot exceed 63 characters, as specified by RFC 822.

       The  text  for most formatted components, such as Date: and Message-Id:, is produced automatically.  The user enters address fields such as
       To: and cc:, and the Subject: field.  Internet addresses are assigned mailbox names and host computer specifications.  The  general  format
       is  local@domain,  for example, MH@UCI or MH@UCI-ICSA.ARPA.  A comma (,) separates multiple addresses.  A missing host/domain is assumed to
       be the local host/domain.

       A blank line (or a line of dashes) signals that all following text up to the end of the file is the body of the message.  No formatting	is
       expected or enforced within the body.

       The following is a list of header components that are considered meaningful to MH programs:

       Date:	 Added by contains the date and time of the message's entry into the transport system.

       From:	 Added	by  contains the address of the author or authors (there may be more than one if a Sender: field is present).  Replies are
		 typically directed to addresses in the Reply-To: or From: field.  The former has precedence, if present.

       Sender:	 Added by in the event that the message already has a From: line.  This line contains the address of the actual  sender.   Replies
		 are never sent to addresses in the Sender: field.

       To:	 Contains addresses of primary recipients.

       cc:	 Contains addresses of secondary recipients.

       Bcc:	 Contains  the	addresses of recipients who receive blind carbon copies of the message.  The Bcc: line does not appear on the mes-
		 sage as sent, so these recipients are not listed.  Recipients in the Bcc: field receive a copy of  the  message  with	a  minimal
		 header.  MH uses an encapsulation method for blind copies; see

       Fcc:	 Causes  to copy the message into the specified folder for the sender, if the message was successfully given to the transport sys-
		 tem.

       Message-ID:
		 A unique message identifier added by if the -msgid flag is set.

       Subject:  Sender's commentary.  It is displayed by

       In-Reply-To:
		 A commentary line added by when replying to a message.

       Resent-Date:
		 Added by when a message is re-distributed.

       Resent-From:
		 Added by when a message is re-distributed.

       Resent-To:
		 New recipients for a message re-sent by

       Resent-cc:
		 New secondary recipients for a message re-sent by

       Resent-Bcc:
		 New blind carbon copy recipients for a message re-sent by

       Resent-Fcc:
		 Places a copy of a message re-sent by into the sender's folder.

       Resent-Message-Id:
		 A unique identifier of a message re-sent by This is appended by if the -msgid flag is set.

       Resent:	 Annotation added by when the -annotate option is specified.

       Forwarded:
		 Annotation added by when the -annotate option is specified.

       Replied:  Annotation added by when the -annotate option is specified.

Files
       Standard location of mail drop.

See Also
       Standard for the Format of ARPA Internet Text Messages (RFC 822)

																      mh-mail(5mh)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy