03-21-2002
To remove all line breaks:
tr -d '\n' < inputfile
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've been asking on IRC channels but no one answers me, I need to format my hard drive, normally it's just format c:
but c doesn't exist, how do I format when I have linux mandrake installed. Please reply to this quickly, I'm kinda in a rush :( (1 Reply)
Discussion started by: darryll777
1 Replies
2. Shell Programming and Scripting
I have 2 files with sample data enclosed.
1. GL (already sorted in ascending order by Gl number)
Gl number*glname*Year*opening balance
1000*Interest Income*2006*100.00
1005*Rental Income*2006*0.00
...
2. Transactions (file is not sorted on GL number or any other field)
Branch*Year*Gl... (12 Replies)
Discussion started by: augustinep
12 Replies
3. Shell Programming and Scripting
I have file with different columns
for ex.
contents of file "txt"
NAME AGE MARKS
HARRY 23 89
TOM 12 67
BOB 23 11
and you see its not formatted.Now, I need the file "txt" to be formatted like
COLUMN1 COLUMN2 COLUMN3
NAME AGE ... (3 Replies)
Discussion started by: vijay_0209
3 Replies
4. Shell Programming and Scripting
Hi,
I have 2 files that I got as an output from another program. They are :
File 1
((((((CtBJa:197.0,CtBTz:197.0):85.0,CtAHr:197.0):116.0,CtDUw:197.0):176.0,CtSwe:197.0):110.0,
(CtL2b:197.0,Ct4Bu:197.0):196.0):197.0,CmuNg:197.0);... (5 Replies)
Discussion started by: Lucky Ali
5 Replies
5. Shell Programming and Scripting
how do i add the directory name to multiple flies and pad numbers sequences
/bin/bin2/bin3/bin4/bin5/foo_bar_vX/foobar
ie i have a pic in the foobar folder call dsc.1
id like to change it to foobar_dsc.0001 (2 Replies)
Discussion started by: thehive
2 Replies
6. Shell Programming and Scripting
Hi,
Can anyone tell me how i can convert all tab spaces inside a script to 4 spaces through another script.
Also i need to find if all the quotes are matching and ended properly. Any idea whould be of great help.
Many thanks! (3 Replies)
Discussion started by: justchill
3 Replies
7. Shell Programming and Scripting
I have 'n' number of files in a folder .each file in the folder "myfolder" is having the content like.
COLNAME
------------
AAAAAA
BBBBBB
CCCCCC
DDDDDD
...
...
...
ZZZZZZ
26 recrod(s) selected.
My request is by reading each file in "myfolder" and format each file such a way... (18 Replies)
Discussion started by: rocking77
18 Replies
8. Shell Programming and Scripting
Good day All,
I have requirement where my input data looks like below
] Message5
Expecting Output as
04/MAR/2104 ||| 23:15:45 ||| servername ||| NOTIFICATION |||message1||||||userId|||||| Message5
I could not use space delimiter as in the messages I would be having them as... (2 Replies)
Discussion started by: Tomlight
2 Replies
9. Shell Programming and Scripting
Hi, I am new to UNIX and need your help in formatting the below input command to the desire output
Input:
CREATE UNIQUE INDEX XPKTABLE1
(
COL1,
COL2
) ON TABLE_NM;
Output:
COMMENT ON TABLE DB_NM.TABLE_NM AS 'PK=,COL1,COL2; ';
In... (14 Replies)
Discussion started by: varun2327
14 Replies
10. Shell Programming and Scripting
I have the following 2 output files, one contain the standard output after i decrypt the encrypted file and another keys listed from the gpg trust db,
Provider File:
gpg: encrypted with 2048-bit RSA key, ID 96301328, created 2014-04-29
"JKL <400@abc.com>"
gpg: encrypted with 2048-bit... (2 Replies)
Discussion started by: Ariean
2 Replies
ap(8mh) ap(8mh)
Name
ap - parse addresses RFC 822-style
Syntax
/usr/lib/mh/ap [ -form file ] [ -format string ] [ -help ] [ -[no]normalize ] [ -width columns ] addrs ...
Description
The program parses addresses according to the ARPA Internet standard. It also understands many non-standard formats. It is useful for
seeing how MH will interpret an address.
The program treats each argument as one or more addresses, and prints those addresses in the official RFC 822 format. Hence, it is usually
best to enclose each argument in double quotes (") for the shell.
In addition to the standard escapes, also recognizes the additional escape error, which is a diagnostic that is returned if the parse
failed.
Options
-form file
Overrides the default output format of The output is formatted according to the instructions in the specified file. This must be
a format file; see
-format string
Overrides the default output format of The output is formatted according to the instructions in the specified string. This must
be a format string; see
The argument to the -format option must be interpreted as a single token by the shell that invokes Therefore, you should usually
place the argument to this option inside double quotes (").
-help Prints a list of the valid options to this command.
-normalize
-nonormalize
Tells to try to find the official host name of the address. This is the default behavior. It can be suppressed using the
-nonormalize option.
-width columns
Specifies the width of the screen in columns.
The defaults for this command are as follows:
-normalize
-width defaults to the width of the terminal
Restrictions
On systems where MH is configured with the BERK option, address parsing is not enabled.
Examples
This is the default format string used by
%<{error}%{error}: %{text}%|%(proper{text})%>
If an error was detected, this string instructs to print the error, a colon (:), and the address that is in error. Otherwise, output the
proper RFC 822 format of the address.
Files
User profile.
System customization file.
See Also
mh-format(5mh), dp(8mh)
Standard for the Format of ARPA Internet Text Messages (RFC 822)
ap(8mh)