Search Results

Search: Posts Made By: yesmani
3,611
Posted By yesmani
Thanks Jim. I have all files are in a code...
Thanks Jim.

I have all files are in a code repository, my build system is in WIN and i need to copy back to several Unix destination servers. So compilation is on WIN and target is on Unix.
...
3,611
Posted By yesmani
Dos2UNIX to skip binaries when run recurrsively
Greetings ..

I recently came across an issue with dos2unix and couldn't find an answer. I tried out in several methods and thought will reach for help

I am doing a recursive dos2unix on a...
14,110
Posted By yesmani
Creating tar excluding links
hi,
How do i create a tar file of a directory excluding the links in that particular directory and its sub-directories.
The below command doesnt work for me.

tar -cvf abc.tar /dir1 --exclude"^l"
3,575
Posted By yesmani
Thanka all,, that really helped me to learn lot,...
Thanka all,, that really helped me to learn lot, i have acheived the output using "jobs" and that is what i was looking for,,
3,575
Posted By yesmani
Thanks pluid for ur response,, the one you...
Thanks pluid for ur response,,

the one you ried doesn't work for me,, the "ps" itself stucks here. when i add it to my script that throws error taht the usage of ps is wrong..

and moreover,,...
3,575
Posted By yesmani
until loop fails.
i have a script like below, i am trying to print "...." until a background process that was executed before is running,, the below does work and teh loop keeps on printing "..", can someone help...
14,860
Posted By yesmani
Thanks for your response,, i have one other...
Thanks for your response,,

i have one other complication, the file is too big and will be updated frequently, so sometimes i would not know what the is the value of E.

say E=/home/user1/temp...
14,860
Posted By yesmani
sed: command garbled
Hi,
I have a file1 as :

A=/home/user
B=/home/user1
C=/home/user2
D=/home/aacsms
E=/home/user1/temp
F=/home/user1/area1


and my script as:

a=`cat /home/aacsms7/file1 | grep -i e`...
1,768
Posted By yesmani
Passing unix command to "sed"
I am trying a simple sed to replace a pattern but it fails ,,c an someone help in where iam wrong, here is what i run and i get no o/p

a=`cat abc.sh | grep -i pattern1 | egrep -iv "pattern2" `...
9,229
Posted By yesmani
yes, u are right,, i expect the outut as above,, ...
yes, u are right,, i expect the outut as above,,

but i would like to rremind that the original file contains "server4" as a value for more than one DB target,, i mean not only DEV_2 target is...
9,229
Posted By yesmani
grep a pattern and replace a value in it and write to the same file.
I have some complication with this, I have a file like below[db.sh] for DEV_1 till DEV_10. and the db values are set accordinly which are not unique. For example DEV1,DEV4,DEV6 can have the same...
1,687
Posted By yesmani
Thanks for ur reply,, i am actually trying...
Thanks for ur reply,,

i am actually trying to print the the status continuoslu until it ends,,,

something like "status bar" which will indicate dots[printing dots] until the operation is in...
1,687
Posted By yesmani
Print processing status in script
I have a script n which i have line like this

echo "enter option"
retrive
cat /tmp/file1

in the above "retrive" is a function that performs some operaion and writes the o/p to a file and...
5,832
Posted By yesmani
\w and $PWD doesnt work for me, I have...
\w and $PWD doesnt work for me,

I have raised posted this already, but still looking for a solution to it. rather contacting tha server ADMINS
5,832
Posted By yesmani
Current working directory in prompt
Can someone tell me how do i set my current working directory in my prompt?

Note: I dont want to use env variable PWD and using `pwd` gives me only my home directoy. suggest a different way ?
...
15,027
Posted By yesmani
Thanks all for your response, I tried all...
Thanks all for your response,

I tried all possiblities adviced,but i still face the issue,, simple echo $PWD itself seems to be not working, I will check with the Admin whether my ID have...
15,027
Posted By yesmani
I tried this already and it sets me the "HOME...
I tried this already and it sets me the "HOME DIR" in the prompt. when i change my directory my prompt still shows the "HOMEDIR" as like that and not my current working directory

---------- Post...
15,027
Posted By yesmani
echo $PWD doesn't work
I have entry in the my .profile like below, but still i see $PWD is not defied in my system

export PS1=$LOGNAME@`hostname`':'$PWD'>'

echo $PWD also gives me nothing, my env list also give no...
208,891
Posted By yesmani
Hi gokulagiridaran, There are many other that...
Hi gokulagiridaran,
There are many other that would help you scriptiong, here are few that would really help you.

$_ - The default parameter for a lot of functions.
$. - Holds the current...
Showing results 1 to 19 of 19

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