Sponsored Content
Top Forums Shell Programming and Scripting remove verticalbar or pipe symbol Post 302282054 by bogu0001 on Friday 30th of January 2009 04:49:30 AM
Old 01-30-2009
Thanx alot for the reply.but the command is nt working

the file will be like this .these boxes appearing as | symbol in the text file. I just need numbers in the same style.

2933263
115194950
114942489
114942929
133258873
86812767
116188061
173556370
82609498
100487454
87852218
9892869
117204744
44033204
2279866
29726304
158331086
95228718
 

10 More Discussions You Might Find Interesting

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

2. Shell Programming and Scripting

Remove the comment symbol ' from a file.

I want to remove the commented lines in a file identified by ' symbol at the start of each ine. A sample example will be like: Input ----- 'IFerr_flag=0THEN iferr_flag=0then iferr_flag=0then iferr_flag=0then iferr_flag=0then iferr_flag=0then iferr_flag=0then Output -------... (3 Replies)
Discussion started by: joyan321
3 Replies

3. Shell Programming and Scripting

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 mysqld failed start nfsd mount failed rpcbind failed to start for... (6 Replies)
Discussion started by: kar_333
6 Replies

4. Shell Programming and Scripting

How to allign output data in UNIX that is separated with a pipe "|" symbol ?

Experts , In the given output of the log file, the 2nd field that is separated by "|" pipe is not aligned well due to the uneven data length, I would like it to align the 2nd column with 37 length (that is disturbed in the output) including the pipe . The two pepe "|" would be in a aligned way... (2 Replies)
Discussion started by: rveri
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

Remove/replace the very first character/symbol match

cat file.txt file 1123.x July 23:222 /cd/hh2/k39/ss2/f7d8d9d8e6r5t4s/dd2/e/s7a/s7a2afa5017d8b975-1.7-1395610245-b22e19bbc477b134 i wish to only extract out the 1.7 (anything within the first - -) i try to look for the sed command under match the first occurence of pattern but out of luck, my... (6 Replies)
Discussion started by: ctphua
6 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
nm(1)							      General Commands Manual							     nm(1)

Name
       nm - name list dump of RISC object files

Syntax
       nm [-adefghnopruvxABTV] [ file1 ... filen ]

Description
       The  nm	command  prints listings formats for the symbol and external sections of the symbol table.  A file can be an object or an archive.
       If you do not specify a file, this command assumes a.out.

Options
       The -A and -B options specify AT&T System V style output or Berkeley (4.3  BSD) style output, respectively.  The default is  Berkeley  (4.3
       BSD).  Some options can change the version-specific defaults. These options change the meaning of overloaded flags after -A or -B is speci-
       fied.

       A normal Berkeley system produces the address or value field followed by a letter showing what section the symbol or external is in and the
       name of the symbol or external.

       These section letters describe the information that nm generates:

       N    nil storage class, compiler internal usage

       T    external text

       t    local text

       D    external initialized data

       d    local initialized data

       B    external zeroed data

       b    local zeroed data

       A    external absolute

       a    local absolute

       U    external undefined

       G    external small initialized data

       g    local small initialized data

       S    external small zeroed data

       s    local small zeroed data

       R    external read only

       r    local read only

       C    common

       E    small common

       V    external small undefined

       The standard  System V format and the -a specified Berkeley format provide an expanded listing with these columns:

       Name    the symbol or external name

       Value   the value field for the symbol or external, usually an address or interesting debugging information

       Class   the symbol type

       Type    the symbol's language declaration

       Size    unused

       Index   the symbol's index field

       Section the  symbol's  storage  class  Every  effort  was made to map the field's functionality into System V nomenclature.  The nm command
	       accepts these options:

       -a   prints debugging information, effectively turning Berkeley into System V format

       -b   prints the value field in octal

       -d   prints the value field in decimal (the System V default)

       -e   prints external and statics only

       -f   produces full output--nm still accepts this old option, but ignores it

       -h   does not print headers

       -n   for System V, sorts external symbols by name (default for Berkeley), and for Berkeley, sorts all symbols by value

       -o   for System V, prints the value field in octal, and for Berkeley prepends the filename to each symbol--good for grepping through nm	of
	    libraries

       -p   prints symbols as they are found in the file (the System V default)

       -r   reverses the sense of a value or name sort

       -u   prints only undefined symbols

       -v   sorts external symbols by value

       -x   prints value field in hexadecimal (Berkeley default)

       -T   truncates long names, inserting an asterisk (*) as the last printed character

       -V   prints version information on stderr

								       RISC								     nm(1)
All times are GMT -4. The time now is 03:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy