I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help.
echo $SH_VAR | command_line Syntax.
The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
Hey,
How to strip the extention from filename?
MY_XML.xml -> MY_XML
MY_TEST_FILE.txt -> MY_TEST_FILE
HELLO_WORLD.xls -> HELLO_WORLD
Thanks in advance! (2 Replies)
I have created one binary with the debug option debug.out and another without it is production.out. Now, i use stripe on the debug.out.
Now, both binary will be same? or have any differences. (1 Reply)
I am new in Unix. I go through the man strip. But did not understand that, why when we have -G (debug and release ) option in the compiler, than using strip command to strip the debug information from the objects. i want to binary for teh production i will compile it without debug option. What the... (4 Replies)
I've many file like this
01-file
01_-_file
01_-_file
01_-_file
01_-_file
01-file
I would remove bold part from filename. Suggestions?Thanks (4 Replies)
Hi
i need help in adding leading zero to filenames
e.g file name in my folder are
1_234sd.txt
23_234sd.txt
the output i need is
001_234sd.txt
023_234sd.txt
can i do this shell scripting
please help (2 Replies)
Ok so I know the title was probably confusing so here goes: I have a tarball (gzipped) that has a nested directory structure . For example:
my.tar.gz (contents)
---
------
---------
------------
---------------
... (2 Replies)
i have a process that receives files similar to below. these are files obviously generated on a windows machine that are submitted to a linux cluster. the one thing they have in common is the leading c:\any-number-of-leading-dirs\filename.xxx. is there a way to re-create/modify the file to remove... (3 Replies)
Hello I have two vars loaded with
$VAR1="ISOMETHING103"
$VAR2="COTHERTHING04"
I need to:
1) Strip the first char. Could be sed 's/^.//'
2) The number has it's rules. If it has "hundreds", it needs to be striped.
If it is just two digits it shouldn't.
So, for VAR1 output should be... (7 Replies)
Discussion started by: tristezo2k
7 Replies
LEARN ABOUT OSF1
strip
strip(1) General Commands Manual strip(1)NAME
strip - Removes symbols and relocation bits
SYNOPSIS
strip [-V] file...
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
strip: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
[SVID 3] Displays the version number of the strip command.
DESCRIPTION
The strip command removes the symbol table and any strippable subsections of the section, including compact relocation information ordinar-
ily present in executable files. 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 to cc, c89, or ld.
Note that the strip command will not strip executables with unresolved relocation entries. It also does not handle archive files.
EXIT STATUS
Success. An error occurred.
ENVIRONMENT VARIABLES
The following environment variables affect the behavior of strip: Provides a default value for the locale category variables that are not
set or null. If set, overrides the values of all other locale variables. Determines the locale for the interpretation of byte sequences
as characters (single-byte or multibyte) in input parameters and files. Determines the locale used to affect the format and contents of
diagnostic messages displayed by the command. Determines the location of message catalogs for processing of LC_MESSAGES. Determines the
directory where a temporary file will be created (if needed). If not set, the current working directory is used.
SEE ALSO
Commands: ar(1), cc(1), c89(1), ld(1), mcs(1)
Standards: standards(5)strip(1)