Sponsored Content
Top Forums Shell Programming and Scripting Replace trailing whitespaces with pipe symbol using perl Post 302732549 by Don Cragun on Sunday 18th of November 2012 11:20:46 AM
Old 11-18-2012
PLEASE USE CODE TAGS! The only trailing space that is visible in your 1st message is a space after the the last start and you haven't replaced it with a | character in the expected output.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

remove verticalbar or pipe symbol

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)
Discussion started by: bogu0001
9 Replies

2. Shell Programming and Scripting

Problem while concating PIPE symbol with a file

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)
Discussion started by: pssandeep
0 Replies

3. Shell Programming and Scripting

replace nulls with whitespaces in a file

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)
Discussion started by: meeragiri
2 Replies

4. Shell Programming and Scripting

PERL - Compare 2 strings, excluding whitespaces

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)
Discussion started by: bojomojo
2 Replies

5. Shell Programming and Scripting

Remove whitespace after pipe symbol but not inside words

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)
Discussion started by: djehresmann
2 Replies

6. Shell Programming and Scripting

Separate letters and replace whitespaces

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)
Discussion started by: Viernes
5 Replies

7. Shell Programming and Scripting

Broken pipe symbol replaced with <A6><A6>

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)
Discussion started by: Satyak
1 Replies

8. Shell Programming and Scripting

Remove pipe(|) symbol ina file, except the ones which are enclosed in double quotes

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)
Discussion started by: Sathyapts
1 Replies

9. Shell Programming and Scripting

Remove pipe(|) symbol in except the ones which are enclosed in double quotes

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)
Discussion started by: Sathyapts
9 Replies

10. Shell Programming and Scripting

How to replace the first and last character which is pipe symbol in all files within a folder?

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
IPTC(1) 							  [FIXME: manual]							   IPTC(1)

NAME
iptc - Utility for viewing and modifying the contents of IPTC metadata in images. SYNOPSIS
iptc [[-q] | [--quiet]] [[-b] | [--backup]] [[-s] | [--sort]] [[-v VALUE] | [--value=VALUE]] [[[-l] | [--list]] [[-L TAGS] | [--list-desc=TAGS]] [[-a TAGS] | [--add=TAGS]] [[-m TAGS] | [--modify=TAGS]] [[-d TAGS] | [--delete=TAGS]] [[-p TAGS] | [--print=TAGS]]] [--help] [--version] [file...] DESCRIPTION
This manual page documents briefly the iptc command. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. iptc is a IPTC data editor. You can add, modify and delete ITPC metadata in images. You can also get the value of a particular tag. -q, --quiet Produce less verbose output. -b, --backup Backup any modified files. -s, --sort Sort tags before displaying or saving. --help Display an help message and exit. --version Display an iptc version number and exit. -l, --list List the name of all known tags (i.e. Caption, etc). -L TAG, --list-desc=TAG Print the name and description of TAG. -a TAG, --add=TAG Add new tag with identifier TAG. -m TAG, --modify=TAG Modify tag with identifier TAG (add if not present). -v VALUE, --value=VALUE Value for added/modified tag. -d TAG, --delete=TAG Delete tag with identifier TAG. -p TAG, --print=TAG Print value of tag with identifier TAG. file Files to edit. EXAMPLES
Display the IPTC metadata contained in image.jpg: iptc image.jpg Set caption "Foo" in all jpegs of the current dir: iptc -m Caption -v "Foo" *.jpg Add keyword "vacation" to all jpegs: iptc -a Keywords -v "vacation" *.jpg LICENSE
This manual page was written by Sylvain Le Gall gildor@debian.org for the Debian GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2.1 or any later version published by the Free Software Foundation; considering as source code all the file that enable the production of this manpage. AUTHOR
Sylvain Le Gall <gildor at-smtp-server debian.org> Author. COPYRIGHT
Copyright (C) 2007 Sylvain Le Gall [FIXME: source] Jan 17, 2007 IPTC(1)
All times are GMT -4. The time now is 09:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy