Perhaps something like:
which with your sample data in a file named file produces the output:
which doesn't have any trailing spaces (unlike your sample output which sometimes has trailing spaces and sometimes does not have trailing spaces) and which has a single space between output fields (unlike your sample output which has varying numbers of spaces between output fields).
As always, if you want to try this on a Solaris/SunOS system, change awk to /usr/xpg4/bin/awk or nawk.
Hi All,
I'd always appreciate all helps from this website. I would like to relocate strings based on the index number from an index file.
Index numbers are shown on the first column in the index file (index.txt) and I would like to relocate "path" based on index numbers. Paths are placed... (11 Replies)
Hello,
I need to execute below command in shell script
srvctl relocate service -d $database -s $service -i $avail -t $pref -f and also need to get the errors ,if any,in another file.
What's the right way to execute such commands in shell script?
Best regards,
Vishal (1 Reply)
Hi,
I have a svn setup with multiple code repositories. Recently the filesystem holds the repository got full and i wanted to have to move some code repositories to another filesystem. I copied some of the code repositored using the "mv" command to another filesystem and created a symlink with... (1 Reply)
Hi, I am getting linking error
i.e.
/ade/aime_urtk/oracle/has/include/caa_ResStateListener.hxx:79: relocation truncated to fit: R_PPC_GO
T16 vtable for CAA::ResourceStateListener
/ade/aime_urtk/oracle/has/lib//libcaad.a(caa_Main.o)(.text+0x88e6): In function `CAA::ResourceStateL... (0 Replies)
Hello,
I wonder if anyone has a clue what could be wrong.
I get the following error on SUN Netra-T4 server when some applications try to start (e.g. slpd) also even if I try commands such as "jar" I get the same error:
ld.so.1: /usr/java1.2/jre/bin/sparc/native_threads/java: fatal:... (3 Replies)
This is my set up:
LD_LIBRARY_PATH=/apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib:/apps/fu/section20/vendorLib/EMS/4.2/lib:/home/a487891/cppunit/lib:/usr/openwin/lib:/usr/lib
ldd -d TestDatalinkTradeRouter
libintl.so => /usr/lib/libintl.so
libw.so.1 => /usr/lib/libw.so.1... (2 Replies)
Hi Iam getting the following error...
ld.so.1: xxxx: fatal: relocation error: file /home/costar4/bin/xxxx: symbol __1cH__rwstdUInterlockedIncrement6Fpl_l_: referenced symbol not found.
Can anyone tell me anything in this ?
Thanks,
Sanja (1 Reply)
I have 2 directories: a1 and b1
Directory b1 depends on directory a1
Using directory a1, I create a1.lib
Using directory b1, I create b1.lib
Now, using a1 and b1, I create a shared object ab1.so
I've been able to build ab1.so just fine. I made an update to file b1.c
and am now getting a... (1 Reply)
when running make command i'm getting the following error:
make:relocation error:make:symbol_sprintf_chk,version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference...
plz tell me what to do abt this... (1 Reply)