Search Results

Search: Posts Made By: mobydick
6,068
Posted By mobydick
next issue
hello bakunin,

can you please tell me about the next problem of printing the
var that i have posted
6,068
Posted By mobydick
getopts issue
in the below script i am expecting the variable surname to be changed but that is not happening can anyone help and explain why and how to do that


surname=halder

echo $surname

while...
6,068
Posted By mobydick
getopts problem
in the below code what this set lines are doing ???
and what does this -- variable means


set -- -1 -----------> ??
while getopts 1 opt; do
case "${opt}" in
1) echo "Worked!";;
*) exit 1;...
6,068
Posted By mobydick
hello bakunin, i tried...
hello bakunin,
i tried something after reading your post ...there is a problem..
see below please

*************************CODE**********************

echo $1 $2 $3
...
6,068
Posted By mobydick
getopts querry ..in continuation
thanks, that pretty much explained and cleared my confusion ...

as it seems to me you can help can you tell me please in the below code what this set lines are doing


set -- -1 -----------> ??...
6,068
Posted By mobydick
getopts problem
i was going through the man page of getopts

this particular section is not clear to me can anyone please
clarify in a little detail so that i can understand the concept

MANPAGE::

Since...
Forum: Solaris 08-26-2008
2,957
Posted By mobydick
significance of library locations in solaris8...please help
this post is related to the arrangements of libraries in a solaris-8 distribution.

i want to build external packages on solaris-8
i need to know why libraries are scattered in a solaris...
Forum: Solaris 08-26-2008
2,171
Posted By mobydick
solaris native binary ...querry
In a solaris 8 machine the native binaries
are mainly kept under /bin and /usr/bin
but some binaries i found in /usr/xpg4/bin

please can anyone tell me in a little detail what is the reason to...
Forum: Solaris 07-23-2008
7,349
Posted By mobydick
how to know the processor bit capacity
how to know for a particular solaris machine whether i am having a 64 bit or 32 bit processor???

like for machine with details


SunOS 5.8 Generic_108528-20 sun4u sparc SUNW,Sun-Blade-100
Forum: Solaris 07-21-2008
4,321
Posted By mobydick
out of memory problem
i am building open source software on a solaris 8 machine

for couple of days i am getting error messages like

out of memory
or
no more processes and then build is failing


i tried with...
1,762
Posted By mobydick
reading from within the loop --std i/p problem
i have a teat file having data like

one 12/3
two 23/09
three 12/12

now from another script i want to read one line at a time ,cut field one and two in two separate variable ,compare field1...
2,318
Posted By mobydick
file redirection problem
my querry is

suppose i have duplicate std i/p with FD-3 --exec 0<&3
now redirected std i/p to a file ----exec 0<file1

suppose i am reading the file line by line...
1,924
Posted By mobydick
shell scripting problem
her i am trying to edit a database file which is actually a small file holding my friend's name and birthdays

My Database

DEEPAK 27/08
DEEPIKA 18/02
DHYAN 23/03
DIPANKAR 24/10
SNIGDHO...
6,079
Posted By mobydick
please post ls -al file
please post

ls -al file
4,278
Posted By mobydick
i dont't know whether this will help..but i hope...
i dont't know whether this will help..but i hope so

df -k|grep /u0 > file--->redirect to a temp file

In the main script
val=$(cat tempfile | wc -l ) --> counting the no of lines

execute...
6,718
Posted By mobydick
possible sollution try it
i dont know whether you are looking for this or not ..i hope so

var1='malay'
var2=$var1

val=$(echo $var2)

eval echo $val ----> o/p will be malay
6,070
Posted By mobydick
little querry
ghostdog74


thanks for the sollution but if at all i want to do it using perl can it be done the way i have shown
and if so where the error is occurring
6,070
Posted By mobydick
still not solved
my changed program

#! /usr/bin/bash
set -x
echo "Enter your friend's name"

read FRIEND
found=no
cat database | while read LINE
do
MATCH=...
6,070
Posted By mobydick
using perl in a shell script
my database
deepak 23/12 43536
deepika 23/12 675858


my program


echo "Enter your friend's name"

read FRIEND
found=no
cat database | while read LINE
do
...
1,574
Posted By mobydick
text parsing querry
$ A=/t1/bin/f410pdb oIFS=$IFS IFS=/
$ set -- $A
$ IFS=$oIFS
$ echo $2
t1
$ echo $3
bin
$ echo $4
f410pdb

can any one please explain me what is done with IFS[bold lines] and how it is...
2,253
Posted By mobydick
i tried that way but its not working .. in my...
i tried that way but its not working ..
in my shell

csbu061 [mhalder] 277: cd /usr/bin
/usr/bin
csbu061 [mhalder] 278: ls | grep tcsh
tcsh

****my script after introducing the shebang line...
2,253
Posted By mobydick
script invokation issue
my problem is :

i have a small script automising the firefox invokation from my $HOME/bin
directory:
**********************
set FIREFOX_PATH='/tools/openbin/firefox/2.0.0.3/sparc-sun-solaris8'...
4,661
Posted By mobydick
building and running a software in different linux kernel versions
my Querry is

if i build a software on a specific linux kernel [ older version ]
and then try to run it on another linux kernel [ new version ]

....what can be the possible problems
...
5,555
Posted By mobydick
querry about xargs command
what is the real use of xargs command ..?

ls -tr |xargs -I{} rm -f {}
....can any one tell me what is the significance of {} curly brackets in this command
14,643
Posted By mobydick
eval echo \$$# will do OR eval "echo \$$#"...
eval echo \$$# will do

OR
eval "echo \$$#"

...any one of them
Showing results 1 to 25 of 41

 
All times are GMT -4. The time now is 03:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy