Search Results

Search: Posts Made By: sangfroid
1,634
Posted By sangfroid
you are running as a root user, try changing...
you are running as a root user, try changing ownership of the file to some other user and then test..

also, you are thinking for +x it is working correctly, but in fact check your code as ctsgnb...
1,902
Posted By sangfroid
for i in $(ls linux*.txt) do ...
for i in $(ls linux*.txt)
do
m=${i/linux/unix}
mv $i $m
done

First test in some temporary directory before you run it in production environment
854
Posted By sangfroid
just change output=$(grep "ERROR"...
just change

output=$(grep "ERROR" $logfile|grep -v "pattern that u don't want to match")

man grep:

-v, --invert-match
Invert the sense of matching, to select non-matching...
3,396
Posted By sangfroid
I will go for awk -F = '{print $4}' filename|awk...
I will go for awk -F = '{print $4}' filename|awk -F '&' '{print $1}' ,as no assumptions needed.

I like the approach of vgersh99 though. By the way, vgersh99, can u pls explain how it processes for...
1,221
Posted By sangfroid
Thanks a lot... now i got it... you are...
Thanks a lot... now i got it...

you are matching www. and the rest for back reference and then printing backreferenced one and original one...

am i correct ?


hmm

cool..
thanks a lot
1,221
Posted By sangfroid
i needed hostname with www and without www along...
i needed hostname with www and without www along with their ip in the same line as


127.0.0.1 www.google.com google.com
127.3.3.1 www.cisco.com cisco.com
127.3.5.1 www.msnbc.com ...
1,221
Posted By sangfroid
some sed help needed
I have file with following contents;

127.0.0.1 www.google.com
127.3.3.1 www.cisco.com
127.3.5.1 www.msnbc.com

I want output as

127.0.0.1 www.google.com google.com
127.3.3.1...
1,120
Posted By sangfroid
got it...thanks :)
got it...thanks :)
1,120
Posted By sangfroid
some vi help needed
Hi,

I have a file with following contents

This is
a text file. It is a long string.


I wanted to know how to how to move the contents of the second line (a text file. It is a long...
6,894
Posted By sangfroid
ok...in that case, what is the real...
ok...in that case, what is the real interpretation of virtual memory value shown with top command ?

man page says:


VIRT -- Virtual Image (kb)
The total amount of virtual memory...
8,311
Posted By sangfroid
Hi after the first line, it stuck up.. ...
Hi
after the first line, it stuck up..

ftp -in ftp.site.com <<End-Of-Session
user user_id pass_word

also it is not accepting the username and password this way.

Did it work in your...
8,311
Posted By sangfroid
Again the problem is i cannot move the log file...
Again the problem is i cannot move the log file of today , as it is being updated continuously ( a live server)
the second problem is to evaluate date once the expect script runs...
...
8,311
Posted By sangfroid
I am getting you. But the problem is how to...
I am getting you. But the problem is how to execute at the remote end "inside" ftp session...

i am stuck up in this one
8,311
Posted By sangfroid
i cannot execute rm -f inside ftp session and...
i cannot execute rm -f inside ftp session and neither can i run egrep in it.
8,311
Posted By sangfroid
automated ftp.
Hi
I am trying to delete some specific files ( files other than created today) from the server on a cron basis. I wrote a small script, but I am stuck up in how to delete only specific files.
...
Showing results 1 to 15 of 15

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