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,
Can someone let me know how do I strip out any non-alphanumeric character in string tomake it alphanumeric?
i.e
abc def ghi ->abcdefghi
abc-def-ghi ->abcdefghi
abc#def-ghi->abcdefghi
Thanks in advance (3 Replies)
I have a file that looks like this:
/home/fred/opt/bin
/opt/usr/bin
/usr/sbin/var/opt
I need a way to chop of everything after the last occurance of the / sign including the /. So the file above will now look like this below.
/home/fred/opt
/opt/usr
/usr/sbin/var
I tried using... (6 Replies)
Hi,
Could anybody please guide how to strip all charaters after the last '/' from a string in a shell script.
I have got few strings like
"/tmp/oracle/oradata1/abc" or "/var/log/backup/bdfd" and I want to strip anything after the last "/" i.e "abc" and "bdfd" in my case.
Thanks,
Jamal (3 Replies)
Hey guys..
Can experts help me in achieving my purpose..
I have a file which contains email address of some 100 to 1000 domains, I need only the domain names..
Eg: abc@yahoo.com
hd@gamil.com
ed@hotmail.com
The output should contain only
Yahoo.com
... (5 Replies)
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)
awk -F"\t" -vOFS="\t" '{print $1"\t-\t-","",$6,$7"\t-"$8"\t-\t-\t"$15}' file.tsv > output.tsv
Using the above command how to remove the string www.abc.com from the $7 value. (7 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)
Discussion started by: harsha1238
12 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)