Search Results

Search: Posts Made By: asami
29,696
Posted By asami
Thanx, i tried it earlier but didn't work at that...
Thanx, i tried it earlier but didn't work at that time. now i find the problem , it was a tilde which created the problem
29,696
Posted By asami
single or double quote in SED
i m trying the following command but its not working:

sed 's/find/\'replace\'/g' myFile

but the sed enters into new line

[root@asamiLinux root]# sed 's/find/re\'place/g' myFile
>

I...
1,719
Posted By asami
if you want to find things owned by a user...
if you want to find things owned by a user 'username'



if you want to find things owned by a group 'groupname'
8,620
Posted By asami
ref: SED One Liners ...
ref: SED One Liners
http://www.student.northpark.edu/pemente/sed/sed1line.txt
13,397
Posted By asami
Got Solution
Thanks Folks for your Patience (sorry for my quick posts)

echo is most inconsitent thing. There is a SYSV3 variable on Unix which tends to change the behaviour of echo command or shell-builtin.
13,397
Posted By asami
i am sorry, i just forget that i have mentioned...
i am sorry, i just forget that i have mentioned this question in my other thread which actually started with another question

echo "adbcd \c"

echo -n "abcd"

Both are working for SH and BASH...
13,397
Posted By asami
Echo escaped \c in SH Shell Any Idea
Hi All,

I have got an echo statement with "\c" in it to avoid getting into a newline. Ths script is using #!\bin\sh

Any idea what could make it to escape "\c"
2,176
Posted By asami
unfortunately i m on Solaris, This command...
unfortunately i m on Solaris, This command doesn't Work.

about shabang, thats for execution of the commands in the script.
2,176
Posted By asami
Which SHELL is this ?
I want to know which SHELL has fired my Script. I tried echo $SHELL but it printed the login shell.

how would i know in this scene:

#csh
#ksh
#sh
#bash
#myscript.sh

that myscript.sh was...
22,925
Posted By asami
using dirname
using dirname
cur=`pwd`
path=`dirname $0`
cd $path
echo "`pwd`"
cd $cur
22,925
Posted By asami
hey vino thnx man, u guided my thirsty soul. the...
hey vino thnx man, u guided my thirsty soul. the following works for me


#!/bin/bash

base=${0%/*}
current=`pwd`

cd $base
echo "The Path is `pwd`"
cd $current
22,925
Posted By asami
you are using $0 which is what is used to...
you are using $0 which is what is used to execute that script, if i used

../../../abc.sh such things are appearing the result. i want direct path
22,925
Posted By asami
no it doesnt work
no it doesnt work
22,925
Posted By asami
how to find Script file location inside script
I have to find out the file system location of the script file inside script. for example a script "abc.sh" placed anywhere in the file system when executed shold tell by itself the location of it....
Showing results 1 to 14 of 14

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