Search Results

Search: Posts Made By: sunilmenhdiratt
3,190
Posted By sunilmenhdiratt
thanks mate , works pefeclly, but cudnt get ksh...
thanks mate , works pefeclly, but cudnt get ksh -c command, could u pls tell lil bit abt it
3,190
Posted By sunilmenhdiratt
Help with xargs
hi
Could any one please tell me the option using which we can run multiple commands using xargs

I have list of files, I want to run dos2unix and chmod at one shot on them

I tried google n...
10,261
Posted By sunilmenhdiratt
worked, but how to do it with xargs ...
worked,

but how to do it with xargs

xargs -i mv {} {%.me} ?? ,

it dint work
10,261
Posted By sunilmenhdiratt
move files using xargs
Hi,

I have many files like below in my currect dir

test1.me
test2.me
test3.me

I wanted them to rename without .me extention

I tried below

find . -name "*.me" | xargs -i mv {}...
1,527
Posted By sunilmenhdiratt
absolutely pefect!!:b: u rock How ever...
absolutely pefect!!:b: u rock

How ever could not get where the replacement happend ,

\1 represents 1st pattern if i am not worng?(which is innitial # here??)
are we replacing it with...
1,527
Posted By sunilmenhdiratt
help with sed
I was looking for help with search and replacement for below.

I have below line in a file,
# java -Dapp=${APPLID} -ms512m -mx512m com.ab.cd.server.deploy.main
There are several lines starting...
1,629
Posted By sunilmenhdiratt
After digging alot , got the solution sed...
After digging alot , got the solution

sed "s#APPPATH=/\${ENVIRONMENT}/\${APPLID}#&/sys12#g" oldfile > newfile

:) Thanks for the help!



---------- Post updated at 10:11 AM ----------...
1,629
Posted By sunilmenhdiratt
:(No Idea buddy , what i understud from your help...
:(No Idea buddy , what i understud from your help is you were trying to skip "$" am i wrong?

i tried this

sed "s/APPPATH\=\/\$\{ENVIRONMENT\}\/\$\{APPLID\}/#$#&\/sys12#/g" oldfile > newfile...
1,629
Posted By sunilmenhdiratt
I am actually editing a file so I want to...
I am actually editing a file so I want to globally replace the APPPATH=/${ENVIRONMENT}/${APPLID} to APPPATH=/${ENVIRONMENT}/${APPLID}/sys12 and redirect to newfile


Please help
1,629
Posted By sunilmenhdiratt
Help with sed
Hi,

I want to append sys12 for below a string globaly

APPPATH=/${ENVIRONMENT}/${APPLID}

it should be

APPPATH=/${ENVIRONMENT}/${APPLID}/sys12



I used below sed command but...
1,637
Posted By sunilmenhdiratt
Thanks Buddy!:b:
Thanks Buddy!:b:
1,637
Posted By sunilmenhdiratt
Please explain below PS1 variable
please tell me what is "!" mean in below value of PS1 variable

PS1='($PWD) !>'

Thanks Sunny
1,743
Posted By sunilmenhdiratt
need help for scrip to monitor disk utilization
Hi,

I need help to write a script which will monitor disk utilization.

Please suggest the best approach to achive this.

I am thinking of having sleep inside the script which will run...
1,360
Posted By sunilmenhdiratt
Thanks Eagle, It was a great idea, But...
Thanks Eagle, It was a great idea, But unfortunetly we dont hav root access.:(
1,360
Posted By sunilmenhdiratt
Please help with monitoring stuff
Hi,

I am trying to write a script to do monitoring kind of stuff,


requirement - when a server is given a start it updates a file called server.log, I need to keep on grepping the word...
3,348
Posted By sunilmenhdiratt
Did you tried any code..? then we can see what...
Did you tried any code..?
then we can see what approach u r using..
7,714
Posted By sunilmenhdiratt
This promts for password, Is there any way to...
This promts for password, Is there any way to pass password to ssh,thru any file..?
2,843
Posted By sunilmenhdiratt
aah! I am facing same issue and searching...
aah! I am facing same issue and searching resolution frm past 1 year, everyone says that there is no way to pass password to sudo, actuly I was trying to login to unix servers using ssh thru script...
11,479
Posted By sunilmenhdiratt
How to check if the file contains only numeric values
How to check if the file contains only numeric values.

I don't want to read entire file it eats lot of cpu

Or any way which consumes less memory n cpu..

Please suggest

-S
19,301
Posted By sunilmenhdiratt
Great Jobe! thanks very much Any links to...
Great Jobe! thanks very much

Any links to O'Reilly Media perl tutorial? I do have willingness and I am googling it.

-S

Thanks Again!
2,377
Posted By sunilmenhdiratt
I added #!/bin/bash while read -n1 char ...
I added

#!/bin/bash
while read -n1 char
do
printf "%d" \'"$char"
done < codefile

------------------------------
But no change in output ,tried adding $"char" also but no go.
...
2,377
Posted By sunilmenhdiratt
help needed with ASCII conversion
I have a file say "codefile" here ,contains data like this

Hi! How are you?

I need to covert this data into stram of equivalant ASCII values

I wrote follwoing script.

#!/bin/bash...
4,156
Posted By sunilmenhdiratt
What is \1 used for , Just want to know, I am new...
What is \1 used for , Just want to know, I am new to sed
19,301
Posted By sunilmenhdiratt
Thanks you very much! ####This is a separate...
Thanks you very much!
####This is a separate request###
I have been asked also to convert data into ascii stream with no delimiters.The data is store in a file say "codefile", it contains data...
19,301
Posted By sunilmenhdiratt
--------------------------------------------------...
---------------------------------------------------------------------
Thanks you very much!

actully I have been asked to convert data into ascii stream with no delimiters.The data is store in a...
Showing results 1 to 25 of 29

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