Replace trailing whitespaces with pipe symbol using perl
I want to replace the whitespace with Pipe symbol to do a multiple pattern matching for the whole text "mysqld failed start" and same as for other text messages Below are the messages stored in a file seperate by whitespace
for each text i need to add the pipe symbol so that it will be easier to do mutliple search pattern similar to egrep.
expected o/p
Last edited by Scrutinizer; 11-18-2012 at 03:06 PM..
Reason: Less information; (mod) code tags
hi guys i have 6000 rows column
the text in the column has the symbol vertical bar |.
i tried some of the commands to remove it but none of the commands are reconzng this symbol. would u plz help to remove this symbol from the text with any kind of unix command
u r help would be appreciated
... (9 Replies)
Hi Gurus,
I had a problem writing a pipe file.
Previously i used this code to generate a tab seperated file
ABCEF := ABCEF || 'to_char('|| abc_tab(col_num).col_name || ') chr(9) || ';
Now i want the o/p as pipe seperated file.I changed the line as below
ABCEF := ABCEF ||... (0 Replies)
Hi,
i have a file which contains data in fixed length. each row contains data of 10 characters fixed length. The data in the file appears like 4567782882
some times i may recieve dat less than fixed length of 10. in such a case i find nulls appended at the trailing spaces when i do a... (2 Replies)
I am creating a script to compare definitions and declarations of functions in C code, and report if the arguments are different.
So I need to compare the 2 strings (args of both), how can I do that? (2 Replies)
I have a file that looks like this:
102| #2 X 1/4-INCH| 30188| EA| FTW| A| NOT SERIAL TRACKING| NOT LOT TRACKING| TRUE| #2 X 1/4-INCH
102| #2 X 1/4-INCH| 30188| EA| VPS| A| NOT SERIAL TRACKING| NOT LOT TRACKING| TRUE| #2 X 1/4-INCH
102| #6 X 1/2"| ... (2 Replies)
Input file:
aaaa bbb dd.
qqq wwww e.
Output file:
a a a a <s> b b b <s> d d .
q q q <s> w w w w <s> e .
Can I use sed to do so in one step? (5 Replies)
hi, i am copying an xml file from windows to linux server using filezilla&winscp. xml file contains ¦¦ symbols, after copying xml file to server ¦¦ is replaced with <A6><A6>. tried with copying xml files from windows in ascii&binary but no luck.
please suggest.
thanks (1 Reply)
I have file with are delimited by pipe(|) symbol, I wanted those to be removed except the ones which are enclosed in double quotes.
If your quote file is:
|Life is |Beautiful"|"Indeed life |is beautiful too|"|"But unix is fun| is not"|"
It should return:
Life is Beautiful"|"Indeed life is... (1 Reply)
I have file with are delimited by pipe(|) symbol, I wanted those to be removed except the ones which are enclosed in double quotes.
If your quote file is:
|Life is |Beautiful"|"Indeed life |is beautiful too|"|"But unix is fun| is not"|"
It should return:
Life is Beautiful"|"Indeed life is... (9 Replies)
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
Discussion started by: cplusplus1
4 Replies
LEARN ABOUT DEBIAN
funnel
funnel(1) logtools funnel(1)NAME
funnel - split one pipe stream to one or more files or programs
SYNOPSIS
funnel [|] [>[>]file] [|process]
DESCRIPTION
The funnel program will read data from standard input and write it to several output streams.
The | symbol means to copy standard input to standard output.
The > symbol means that a file name immediately follows with no separating spaces, the file will be truncated if it exists or created if it
doesn't. The >> means that the file is to be appended to if it exists.
A | symbol followed immediately by text indicates a command that is to be run by system() and will have all input piped to it.
EXIT STATUS
0 No errors
1 Error opening input
Other errors are 100 + number of commands or files that fail
AUTHOR
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>.
FEATURES
Uses popen (3) for output so that shell expansion gets performed. If you want such shell expansion then you must ensure that you quote the
parameters correctly so that they get expanded by popen (3) not the shell that calls funnel.
SEE ALSO popen(3)Russell Coker <russell@coker.com.au> 0.06 funnel(1)