STRIP(1) General Commands Manual STRIP(1)NAME
strip - remove symbols and relocation bits
SYNOPSIS
strip name ...
DESCRIPTION
Strip removes the symbol table and relocation bits ordinarily attached to the output of the assembler and loader. This is useful to save
space after a program has been debugged.
The effect of strip is the same as use of the -s option of ld.
FILES
/tmp/stm? temporary file
SEE ALSO ld(1)7th Edition April 29, 1985 STRIP(1)
Check Out this Related Man Page
STRIP(1) BSD General Commands Manual STRIP(1)NAME
strip -- discard information from ELF objects
SYNOPSIS
strip [-d | -g | -S | --strip-debug] [-h | --help] [--only-keep-debug] [-o outputfile | --output-file=outputfile] [-p | --preserve-dates]
[-s | --strip-all] [--strip-unneeded] [-w | --wildcard] [-x | --discard-all] [-I format | --input-target=format]
[-K symbol | --keep-symbol=symbol] [-N symbol | --strip-symbol=symbol] [-O format | --output-target=format]
[-R sectionname | --remove-section=sectionname] [-V | --version] [-X | --discard-locals] file ...
DESCRIPTION
The strip utility is used to discard information from ELF objects.
The strip utility supports the following options:
-d | -g | -S | --strip-debug
Remove debugging symbols only.
-h | --help
Print a help message and exit.
--only-keep-debug
Remove all content except that which would be used for debugging.
-o outputfile | --output-file=outputfile
Write the stripped object to file outputfile. The default behaviour is to modify objects in place.
-p | --preserve-dates
Preserve the object's access and modification times.
-s | --strip-all
Remove all symbols.
--strip-unneeded
Remove all symbols not needed for further relocation processing.
-w | --wildcard
Use shell-style patterns to name symbols. The following meta-characters are recognized in patterns:
! If this is the first character of the pattern, invert the sense of the pattern match.
* Matches any string of characters in a symbol name.
? Matches zero or one character in a symbol name.
[ Mark the start of a character class.
Remove the special meaning of the next character in the pattern.
] Mark the end of a character class.
-x | --discard-all
Discard all non-global symbols.
-I format | --input-target=format
These options are accepted, but are ignored.
-K symbol | --keep-symbol=symbol
Keep the symbol symbol even if it would otherwise be stripped. This option may be specified multiple times.
-N symbol | --strip-symbol=symbol
Remove the symbol symbol even if it would otherwise have been kept. This option may be specified multiple times.
-O format | --output-target=format
Set the output file format to format. For the full list of supported formats, please see the documentation for function
elftc_bfd_find_target(3).
-R sectionname | --remove-section=sectionname
Remove the section named by the argument sectionname. This option may be specified multiple times.
-V | --version
Print a version identifier and exit.
-X | --discard-locals
Remove compiler-generated local symbols.
DIAGNOSTICS
The strip utility exits 0 on success, and >0 if an error occurs.
SEE ALSO ar(1), elfcopy(1), ld(1), mcs(1), elf(3), elftc_bfd_find_target(3), fnmatch(3)BSD September 17, 2011 BSD
Hi,
I am receving a file from remote site which has EDI information for 830, 862 and 997 and I want to extect the data for 997 using grep's or any other methods.
The data look like this:
ISA~000
0000-0001-1000~997
AK1000~m
000~IEA~M
ISA~000
0000-0001-1000~849
000~IEA~M
ISA~000... (11 Replies)
Guys,
Please can someone tell me how to strip each string from the following ?
TABLE1||METHOD||TYPE||STATUS||DATE
What i need is to assign each value to the variable
TABLE1 to var1
METHOD to var2
and so on
If there is NULL in one of them, something like A||B||||C||
I want the... (14 Replies)
Hi,
How can I remove all non numerical data from line, so I don't want to delete the line but to have only the numbers.
e.g.:
#########
123
aaa124
125bbb
126
127
#########
So I want all the leading and trailing non numerical stuff(letters/white space/tabs anything else except... (10 Replies)
Hello! I have content in a log file that consists of a lot of spaces before and after a 3 digit integer which I need to strip out before I can use the file. The number of digits can change. When I had my logic in a 'for' loop and could output into another file, it was fine. but it turns out... (10 Replies)
Hi
I have a file from which i need to remove the first 4 and the last 2 lines.. i know how to do it with sed but i need to do it in a perl script.. can you please help me how to do that.
Thanks (10 Replies)
This command gives me just the filename without any extension:
evrvar =`echo filename.tar | sed 's/\.*$//'`
I am trying to make a change to this command... to make it work for... filename.tar.gz to get just the filename....
currently the command gives me filename.tar by removing only gz... I... (9 Replies)
I have a PERC 5/i card. Im using with it 3 15k rpm HDD's (model: SEAGATE Savvio 15K ST936751SS). Im going to install debian on this array.. and im looking for performance... So what would be the stripe size that i should set this raid 0 into to give me the best performance?
Thanks (22 Replies)
I have a list of servers that I need my script to ping however this list also has the env they belong too such as SIT, PRD, warehouse and so on.
The break character for each section is :
A value in my list would look like this...
brutus.grhq.xxx.com:warehouse
Where brutus.grhq.gfs.com is... (13 Replies)
Hey guys,
I've got an awk string that does a simple calculation which works well. However, I'd really like to be able to strip the decimal point and the trailing ints from it - any ideas on how I'd change the awk string to be able to do that ? I've changed it countless times and each time it... (14 Replies)
Hi All,
I used this code to strip-off $-symbol from string values.
a="$980"
b="897"
a=`echo "$a" | sed 's/$/ /g'`
b=`echo "$b" | sed 's/$/ /g'`
echo "$a"
echo "$b"
but this results in the output:
80 and 897
it works when i use
a='$987'
b='890' (13 Replies)
I am parsing a file and I get differnt results everytime.
Sometimes I get 12s sometimes I get 54m and sometime 3h..
v1=12s or v1=54m or v1=3h
12s - 12 seconds
54m - 54 minutes
3h - 3 hour
I have to write a script in such a way that it whenever v1 is in minutes,
I should strip "m"... (14 Replies)
Hi Gurus,
my current code like below:
nawk '{f1 = (NF>1)?$1:""}{print f1, $NF}'|sed -e 's/s(/,/g;s/)//g;s/ *,/,/'|nawk -F"," '{ab}END{for (i in b) if (!(i in a))print i}'
I have file like below. (this is autosys job dependencies)
the job with s() is dependencies, the job without s() is... (10 Replies)
Hi All,
I currently have flat file with 32 columns. The field delimiter is cntl-A ( \x01). The file has been extracted from an oracle table using a datastage job. However, in the 6th field, the data contains additional control -A characters which came as a part of the table data.
I need... (12 Replies)