Search Results

Search: Posts Made By: natraj005
1,502
Posted By natraj005
I mean after executing the command the pattern is...
I mean after executing the command the pattern is not getting changed/substituted with the new one. .. It remains the same old one...

---------- Post updated at 12:31 PM ---------- Previous...
1,502
Posted By natraj005
My bad, still its not get substituting, I used...
My bad, still its not get substituting, I used below one

find /tmp -type f -exec sed 's/HOSTNAME=`hostname`/HOSTNAME=localhost/g' {} \;

Please wrap all code, files, input & output/errors in...
1,502
Posted By natraj005
How to substitute a word in multiple file?
Team,

I want to change below parameter in all the files in a directory,

Check for HOSTNAME=`hostname`
Change to HOSTNAME=localhost

And I tried below but, its not working ☹

find /tmp...
1,506
Posted By natraj005
Thanks Rudic, as i informed in the other thread...
Thanks Rudic, as i informed in the other thread it is working for me now.

its worked for me.... both "for" and "while" worked for me, its my bad early i used it wrong.

Thanks guys for helping...
1,642
Posted By natraj005
Thanks guys, its worked for me.... both "for" and...
Thanks guys, its worked for me.... both "for" and "while" worked for me, its my bad early i used it wrong.
1,506
Posted By natraj005
Am trying below script and it is not working ...
Am trying below script and it is not working

dir=/home/test

while read MAIL
do
PERSONAL_MAIL=$dir/www.$MAIL.com
ACCOUNT=$(grep -c mail $PERSONAL_MAIL)
if [ -z "$PERSONAL_MAIL" ]
...
1,642
Posted By natraj005
tried below one and no o/p from the script ...
tried below one and no o/p from the script

#!/bin/ksh
while read chat # Read lines one by one
do
call=$(/home/$chat)
search=$(grep -c incoming $call) # need to have two variable...
1,642
Posted By natraj005
yes only names in /tmp/123.txt line by line as...
yes only names in /tmp/123.txt line by line as below

ram
suresh
John

my requirment is want to seach a pattern called " incoming" in file called /home/ram and then have to displayed that if...
1,642
Posted By natraj005
for chat in $(cat /tmp/123.txt| head -1) #...
for chat in $(cat /tmp/123.txt| head -1) # cutting the 1st line of the file which should be ram in my case
do
call=`grep -i incoming /home/$chat | wc -l ` # search for incoming in /home/ram file...
1,642
Posted By natraj005
How to use for and if?
I have a secinario like , want to cat a file until the 123.txt gets empty ....for that i made below syntax, but looks not correct


cat 123.txt

ram
suresh
John



for chat in $(cat...
1,506
Posted By natraj005
Thanks rdrtx1 for your quick reply! what you...
Thanks rdrtx1 for your quick reply!

what you gave is checking only in the first file i.e) only checking in /home/test/www.yahoo.com and coming out, and not checking in the remaining two files...
1,506
Posted By natraj005
RavinderSingh13, to be more specfic i have...
RavinderSingh13,

to be more specfic i have to capture each line from test.txt and assign it to a variable called MAIL and then i can assign that to another variable

like below
...
1,506
Posted By natraj005
How to get a value from a file and serach that value filename in a dir?
buddies,

my requirement would be as follows,

I have a file called test.txt and content of it would be


yahoo
gmail
hotmail


and i want to search a file name called "yahoo.html"...
2,347
Posted By natraj005
script name will be the same but my location will...
script name will be the same but my location will differ based upon my input... that's why i made a search and find that exact file in the script.... i need to add some more stuffs also.... thanks...
2,347
Posted By natraj005
thanks aashish sharma, I have rename PATH...
thanks aashish sharma,

I have rename PATH todifferent variable name, now its working fine.

But how to call the mail script in background ?

---------- Post updated at 08:24 AM ----------...
2,347
Posted By natraj005
Problem in calling a script inside a script
Hi team,

I have a script in different folder. Now i want to call that script and execute that script from that path alone.

My code is

#!/bin/bash
wname=yahoo
PATH='/opt/IBM'...
2,196
Posted By natraj005
Thanks to all for the quick response ..... ya i...
Thanks to all for the quick response ..... ya i got the output which i required. . . .
2,196
Posted By natraj005
Want to write all the jar name in single with delimiter ":" in beween the jar name
Hi All,

I am having 7 jar files in a dir. abc like listed below

bash-3.00$ cd abc
bash-3.00$ ls
123.jar
23wdawd.jar
dfsa23.jar
dsa.jar
wew234.jar
adsd234234.jar
dfsda423.jarNow i want...
2,177
Posted By natraj005
amin option is not working in Solaris OS.
amin option is not working in Solaris OS.
2,177
Posted By natraj005
List files which access before 2 hours in solaris
Hi Friends,

I want to the list the files in the folder which was access before 2 hours in Solaris.


Thanks in advance......
11,345
Posted By natraj005
ahamed i am getting the same error "file...
ahamed

i am getting the same error "file unchanged". . .. :wall:

FYI , that file was created by jar command. . .
11,345
Posted By natraj005
Thanks jayan_jay But i am getting the...
Thanks jayan_jay

But i am getting the following output.

Is's increasing the size of the file.


bash-3.00$ ls -l /opt/test

-rw-r--r-- 1 test test 15M Aug 22 18:20 old.war
...
11,345
Posted By natraj005
No old.war is 15mb in size.It's not of zero size....
No old.war is 15mb in size.It's not of zero size. . .
11,345
Posted By natraj005
Want to compress .war extension file
Hi All,

I want to compress a .war file.


bash-3.00$ ls -l /opt/test

-rw-r--r-- 1 test test 15M Aug 22 18:20 old.war

bash-3.00$ find . -type f -exec compress {} \;
...
1,942
Posted By natraj005
thanks a lot " ctsgnb ". It's working. . ....
thanks a lot " ctsgnb ". It's working. . . .
Showing results 1 to 25 of 61

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