Sponsored Content
Full Discussion: New Member - First Question
Top Forums Shell Programming and Scripting New Member - First Question Post 302396489 by Scott on Thursday 18th of February 2010 02:43:54 PM
Old 02-18-2010
Quote:
Originally Posted by Corona688
sed, awk, and other such line-based tools probably aren't going to be much help, they can't handle lines over a relatively small maximum size.
I don't think sed has any such limit. It's a stream editor, not a line editor.

Code:
sed 's/|\([MSH|PID|PV1]\)/\|\
\1/g' file1

MSH|data|data|data|data|data|data|data|
PID|data|data|data|data|
PV1|data|data|OBX|data|data|
....

 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

member titles

I must have missed it , but what do Junior Memeber/Member mean? is there a reference arounf for the significance of these titles ? Thanks, Hezki (3 Replies)
Discussion started by: me2unix
3 Replies

2. Solaris

new member

As a new member how do I go about asking question to the administrator and other users (1 Reply)
Discussion started by: malusims
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Who is The First Member !!!

Hello Admins Just tell me who is the first member of this forum. Regards, Awadhesh (1 Reply)
Discussion started by: Awadhesh
1 Replies

4. UNIX for Dummies Questions & Answers

new member need help

brothers and sisters iam a new member of your respectful forum hope to accept me i really would like to an expert in unix and linux so please tell me how could ? and what i should have ? i want to make my project in these subject but i dont know what to do and which... (12 Replies)
Discussion started by: yemen
12 Replies

5. UNIX for Dummies Questions & Answers

New Member

HI Bruce from Central PA I have never used Unix but am sick of Microsoft so want to learn it. I use to own a computer store front and training center and stated our with Atari, Commodore and the 1st PC and MS/DOS then Windows BUT sick of Microsoft controlling the computer industry. ... (2 Replies)
Discussion started by: Brucec
2 Replies

6. What is on Your Mind?

new member

i am new member i hope here is good friends (1 Reply)
Discussion started by: annsoo
1 Replies

7. What is on Your Mind?

New member

Hi guys! My name is Leonida and I am new here to this forum. Nice meeting you all. (1 Reply)
Discussion started by: leeoona
1 Replies
PHP_STRIP_WHITESPACE(3) 						 1						   PHP_STRIP_WHITESPACE(3)

php_strip_whitespace - Return source with stripped comments and whitespace

SYNOPSIS
string php_strip_whitespace (string $filename) DESCRIPTION
Returns the PHP source code in $filename with PHP comments and whitespace removed. This may be useful for determining the amount of actual code in your scripts compared with the amount of comments. This is similar to using php -w from the commandline. PARAMETERS
o $filename - Path to the PHP file. RETURN VALUES
The stripped source code will be returned on success, or an empty string on failure. Note This function works as described as of PHP 5.0.1. Before this it would only return an empty string. For more information on this bug and its prior behavior, see bug report #29606. EXAMPLES
Example #1 php_strip_whitespace(3) example <?php // PHP comment here /* * Another PHP comment */ echo php_strip_whitespace(__FILE__); // Newlines are considered whitespace, and are removed too: do_nothing(); ?> The above example will output: <?php echo php_strip_whitespace(__FILE__); do_nothing(); ?> Notice the PHP comments are gone, as are the whitespace and newline after the first echo statement. PHP Documentation Group PHP_STRIP_WHITESPACE(3)
All times are GMT -4. The time now is 11:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy