[Ilugc] recursive search

2010-01-13 Thread Suresh Kumar Subramanian
Hi,

How to find the text from a file(directory  subdirectory). (recursive search)

Ex :
Directories :
/prog
/prog/sub1/
/prog/sub1/dir1/
/prog/sub2/

Each folder contains some text files.

I want to search a text from all the files in the directory /prog and 
subdirectories.

I tried
cat * | grep text  But it searches only the current directory also it not 
lists the filename.

How do I do this

Thanks
Suresh
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


RE: [Ilugc] whois database

2010-01-13 Thread Suresh Kumar Subramanian
whois result admin contact for some domains,

*Administrative Contact:*
name  email
address
phone etc

Write the script to identify the word Admin (no case sensitive) and take next 
sentence for admin contact.
You have to collect the details from all the domains and identify the 
similarities in the results and write the script to work all the results.

Thanks
Suresh
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Abishek Goda

 How to find the text from a file(directory  subdirectory). (recursive search)

 Ex :
 Directories :
 /prog
 /prog/sub1/
 /prog/sub1/dir1/
 /prog/sub2/

 Each folder contains some text files.

 I want to search a text from all the files in the directory /prog and 
 subdirectories.

 I tried
 cat * | grep text  But it searches only the current directory also it not 
 lists the filename.

 How do I do this

man grep. you may want to check -R and -H flags once again.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Pandian R
find .|xargs grep 'text'

Pandian R
---
*Free* software is a matter of liberty not price. You should think of free
as in free speech.

Proud user of Ubuntu 9.1 - 64



On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian 
sureshkuma...@carc.co.in wrote:

 Hi,

 How to find the text from a file(directory  subdirectory). (recursive
 search)

 Ex :
 Directories :
 /prog
 /prog/sub1/
 /prog/sub1/dir1/
 /prog/sub2/

 Each folder contains some text files.

 I want to search a text from all the files in the directory /prog and
 subdirectories.

 I tried
 cat * | grep text  But it searches only the current directory also it not
 lists the filename.

 How do I do this

 Thanks
 Suresh
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] whois database

2010-01-13 Thread Raman.P

--- On Wed, 13/1/10, Govi govi@gmail.com wrote:

 To check from our registrar for our client domains having
 correct contact
 informations or not.
 
 You can write a shell script to do this.
 
 
 i can able to write a script , but whois command giving
 different type of
 result.
 
 E.g:
 whois result admin contact for some domains,
 
 *Administrative Contact:*
 name  email
 address
 phone etc
 
 some other domains result as
 
 *Admin Name:* XXX
 *Admin Email:*  XXX
 etc..
 
 i don't know it may return some other type too.
 
 Please help me how can i do it.


You may try perl modules from cpan.org
e.g
http://search.cpan.org/~apla/Net-Domain-Info-0.02/lib/Net/Domain/Info/Whois.pm
http://search.cpan.org/~dhudes/Net-Whois-1.9/Whois.pm

or search in cpan.org

Raman.P
blog:http://ramanchennai.wordpress.com/




  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Saravanan S
On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian 
sureshkuma...@carc.co.in wrote:


 How to find the text from a file(directory  subdirectory). (recursive
 search)
 cat * | grep text  But it searches only the current directory also it not
 lists the filename.


The  -R switch for grep works for you :)

grep -R search_text Directory


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Govi
Hi,

How to find the text from a file(directory  subdirectory). (recursive
search)

read the man page for grep

I want to search a text from all the files in the directory /prog and
subdirectories.

#grep -r string /proc



---
Thanks  Regards,
Govi

My Expose are http://cyberbytes.wordpress.com

My Scriblings are http://puthiyapathai.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Bharathi Subramanian
On 1:51pm, Suresh Kumar Subramanian wrote:

 cat * | grep text

Useless use of CAT :)

Use recursive (-r) option of Grep command:
grep -r text  /prog

Bye :)
-- 
Bharathi S


___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


RE: [Ilugc] recursive search

2010-01-13 Thread Suresh Kumar Subramanian
The  -R switch for grep works for you :)

grep -R search_text Directory

Thanks it works.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Google Chrome

2010-01-13 Thread Roshan George
On Wed, 2010-01-13 at 12:49 +0530, steve wrote:
 I don't know how to find the profile but to start two /independent/ firefox 
 instances you can use the command:

You could do something like this to get the process id corresponding to
each profile:

for i in `pidof firefox`; do echo PID: $i; lsof -a -p $i | grep
parent | awk '{ print $9 }' | sed -e s/.*firefox\\//''/ -e s/\\/\.*/''/
-e s/[A-Za-z0-9]*\./''/; done

Or you could just install the Profileswitcher Firefox extension ;)
-- 
Roshan George ros...@arjie.com

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Please join me at this site

2010-01-13 Thread Murugavel Thiruvengadam
Murugavel Thiruvengadam wants to add you to his network   Murugavel 
Thiruvengadam Hello,Join my network at Tubely. Me and our friends are waiting 
to have you join us at Tubely.Hope to see you soon.Connect to my network today 
http://www.tubely.com/reg/registration.php?4uDqycis2tmjy87g5qLWxZPV5/KY4M7Y7tvYosbRp93e1tKa2tejy9PqnPLC19fh4NXrx9GMzdze1Nri3uLcw8nN5vKY4NnZ7ubqycbi3uC1ydLN4uCjxdTZ95fz4Ijq3+biy9Pg95fzlJWdqaGlk5KdrA==Cheers-
 Murugavel ThiruvengadamThis message was sent from www.tubely.com by user 
tMurugavel from ip . 15.219.201.70To visit the site 
http://www.tubely.com/Already a member of tubely? Visit 
http://www.tubely.com/unsubscribe.php4uDqycis2tmjy87g5qLWxZPV56Cnkp6aqq2lkJ2kp6ehlJWdqaGlk5KdrKDpj87a7dnn0MbY4uLry9nRpaWjkpGZqqCmlA==
 to prevent further reminders of this invitationPrefer not to receive 
invitations from Tubely members? Visit 
http://www.tubely.com/unsubscribe.php4uDqycis2tmjy87g5qLWxZPV56Cnkp6aqq2lkJ2kp6ehlJWdqaGlk5KdrKDpj87a7dnn0MbY4uLry9nRpaWjkpGZqq
 CmlA== Block further invitations
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread steve

Hi,

On 01/13/2010 01:52 PM, Pandian R wrote:

find .|xargs grep 'text'

Pandian R
---
*Free* software is a matter of liberty not price. You should think of free
as in free speech.

Proud user of Ubuntu 9.1 - 64



Please avoid top posting the next time.

cheers,
- steve
--
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Reverting to default window manager in Fedora 12 GNOME

2010-01-13 Thread Salvadesswaran P.S.
Dear all,

I was fiddling around with the desktop managers available on Fedora 12, and
I chose GNOME/E16 option from the login screen on my desktop. My family
has a tough time adjusting to it though, so I reverted to GNOME but it still
loads E16 as the window manager in place of the more familiar metacity.

Does anyone know how to revert back to metacity? I have to do this manually
from a virtual terminal for each session, and the other folks don't want to be
 doing that everytime they use the PC :)

Thanks.

-- 


Salvadesswaran Srinivasan

http://www.twitter.com/salva_eswar
http://queasyquagmire.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] FTP on the COMMANDLINE

2010-01-13 Thread Vishnu Raj
The basics of FTP on the command line are simple, you type the
address, login, cd to the directory where the file is you want, and
you type get file_name and when the file is downloaded you type
bye to close the connection.
To show you that the FTP program is running your prompt will change to
a special FTP prompt:

ftp

Okay, let me show in an example how to download the D Small Linux ISO:
dsl-1.3.1.iso using the commandline:

[bruno:~]$ ftp -v ftp.nluug.nl
Connected to ftp.nluug.nl.
220-There are currently 183 users logged in (max 850).
220-There are 50 extra sessions available for IPv6 clients
220-This is an IPv4 session
220-
220-Welcome to the FTP archive of SURFnet BV and
220-The Netherlands Unix Users Group (NLUUG).
220-
220-This server is located in The Netherlands, Europe.
220-If you are abroad, please find an ftp site near you.
220-Most information on this site is mirrored.
220-
220-Information about your login and any transfers you do are logged.
220-If you don't like this, disconnect now.
220-
220-For statistics, see http://ftp.surfnet.nl/.statistics/
220-Problems?  Mail ftpmirror-beheer @ surfnet.nl
220-
220-You may login as ftp or anonymous.
220-
220
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type

Now we are asked to login and we will use the name anonymous:

Name (ftp.nluug.nl:bruno): anonymous
331 Please specify the password.

And give a password ( in most cases your email address ):

Password:  
230-
230-
230-Want to know where to find what data?  See the file
230-/pub/WhereToFindWhat.txt
230-
230-
230-
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

Now we get the FTP prompt and we can cd to the directory where the
file is located: ( Note, next to the cd command also ls and pwd are
commands known by FTP, but more about that later )

ftp  cd /pub/os/Linux/distr/damnsmall/current/
250 Directory successfully changed.

Next we are going to download the file:

ftp  get dsl-1.3.1.iso
local: dsl-1.3.1.iso remote: dsl-1.3.1.iso
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for dsl-1.3.1.iso (50745344 bytes).
226 File send OK.
50745344 bytes received in 1.5e+02 seconds (3.3e+02 Kbytes/s)

And after seeing File send OK you can close the connection and get
your usual prompt back:

ftp  bye
221 Goodbye.
[bruno:~]$

If you want to see a full list of commands that your FTP program can
handle just type a ? at the FTP prompt:

ftp  ?

-- 
விஷ்ணுராஜ். க

Kanchi Linux User Group Rocks !

http://kanchilug.wordpress.com

My Experiments In Linux are here

http://gnutuxfollower.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Reverting to default window manager in Fedora 12 GNOME

2010-01-13 Thread Shrinivasan T
Hi,

Try this link.

http://ubuntuforums.org/archive/index.php/t-15193.html

various methods are described.

Test those things and share your experience.


-- 
Regards,
T.Shrinivasan


My experiences with Linux are here
http://goinggnu.wordpress.com

For Free and Open Source Jobs
http://fossjobs.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] problem detecting the nic card

2010-01-13 Thread rajkumar vbalakrishnasamy
And too same problem in fedora 6 for another card *Silan SC92031 PCI Fast
Ethernet* but this time it is an duplicate card i unknowingly buyed it and i
tried with upto fedora11 there is no driver for both nic cards.

On Wed, Jan 13, 2010 at 12:57 PM, steve st...@lonetwin.net wrote:

 Hello,


 On 01/13/2010 09:49 AM, rajkumar vbalakrishnasamy wrote:

 where to download the driver for Realtek RTL8169/8110 Family Gigabit
 Ethernet for fedora 6

 *Please* *do not* use fedora 6. Use a recent version like Fedora 12 (the
 latest LFY comes with the DVD ...or just post your request here and someone
 would be able to help you).

 The problem with using long dead unsupported versions is:
 a. You *will* face issues with the software
 b. You will not be able to fix the issues because the updates to it are no
 longer available.

 cheers,
 - steve

 --
 random non tech spiel: http://lonetwin.blogspot.com/
 tech randomness: http://lonehacks.blogspot.com/
 what i'm stumbling into: http://lonetwin.stumbleupon.com/




-- 
|
kris rajkumar
|
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] problem detecting the nic card

2010-01-13 Thread Abishek Goda
hi,

 And too same problem in fedora 6 for another card *Silan SC92031 PCI Fast
 Ethernet* but this time it is an duplicate card i unknowingly buyed it and i
 tried with upto fedora11 there is no driver for both nic cards.

So I wasn't alone. The Silan card works with ndiswrapper and the
windows driver. legal/foss and such details I am not totally sure.

Abishek
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] recursive search

2010-01-13 Thread Siva Chandran P
On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian 
sureshkuma...@carc.co.in wrote:

 Hi,

 How to find the text from a file(directory  subdirectory). (recursive
 search)


You can also try regexxer if you want a GUI based one.

Thanks  Regards,
Siva Chandran P
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Installing Ubuntu 9.10 along with Fedora Core 11, grub failed to boot FC 11

2010-01-13 Thread Sree Pratheep
On Wed, Jan 13, 2010 at 12:13 AM, Ravi Jaya ravi.goglob...@gmail.com wrote:

 #menuentry Fedora (2.6.31) (on /dev/sdb2) {
        #set root=(hd1,8)
 #       insmod ext2
 #       set root=(hd1,2)
 #       search --no-floppy --fs-uuid --set
 05364295-f61f-4068-b176-f8deb1e52098
 #       linux /boot/vmlinuz-2.6.31 ro
 root=UUID=05364295-f61f-4068-b176-f8deb1e52098 rhgb quiet
 init=/sbin/bootchartd
 #       initrd /boot/initrd-2.6.31.img
 #}

 #menuentry Fedora (2.6.27.5-117.fc10.i686) (on /dev/sdb2) {
 #       insmod ext2
 #       set root=(hd0,2)
 #       search --no-floppy --fs-uuid --set
 05364295-f61f-4068-b176-f8deb1e52098
 #       linux /vmlinuz-2.6.27.5-117.fc10.i686 ro
 root=UUID=05364295-f61f-4068-b176-f8deb1e52098 rhgb quiet
 init=/sbin/bootchartd
 #       initrd /initrd-2.6.27.5-117.fc10.i686.img
 #}



Can you try after changing the following in grub.conf
'linux /vmlinuz-2.6.27.5-117.fc10.i686 ro
root=UUID=05364295-f61f-4068-b176-f8deb1e52098 rhgb quiet'
to
'kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro
root=UUID=05364295-f61f-4068-b176-f8deb1e52098 rhgb quiet'

I have the following in my Fedora 11

title Fedora (2.6.29.4-167.fc11.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro
root=UUID=5255b8f4-e8e6-417c-97dc-eed35b91a078 rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img


-Sree Pratheep
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] how to merge directory contents

2010-01-13 Thread Saravanan S
Hi all,
  I need to merge the contents of several directories, into a single
directory structure,
Like i have
dir1/a/1
dir1/b/2
dir2/a/10
dir2/b/20

after merging dir1 and dir2, i should get,

dirnew/a/1 and 10
dirnew/b/2 and 20

How to do this easily?


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] how to merge directory contents

2010-01-13 Thread sivakumar
 How to do this easily?

did you try mv ? (just a guess/suggestion, have not tested it)

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] one-application-oneday (Specto)

2010-01-13 Thread Dhastha Gheer
Application: Specto

What it is:

Specto is a desktop application that will watch configurable events
(such as website updates, emails, file and folder changes, system
processes, etc) and then trigger notifications.

For example, Specto can watch a website for updates (or a syndication
feed, or an image, etc), and notify you when there is activity
(otherwise, Specto will just stay out of the way). This changes the
way you work, because you can be informed of events instead of having
to look out for them.

Features:

# Freedesktop and HIG-compliant
# Beautifully designed and sits neatly on your workspace
# Integration with GNOME technologies

To Install:

sudo apt-get install specto

To Open:

Applicaiton - Accessories - Specto
-- 
 நன்றி ,

 தஸ்தகீர்.அ

 Kanchi Linux User Group Rocks !

 http://kanchilug.wordpress.com

 My Works on Linux

 http://dowithlinux.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] SciPy Workshop @ AVIT Chennai

2010-01-13 Thread Bharathi Subramanian
Two day workshop on Python for Scientific Computing is organized
at AVIT by FOSSEE Team, on Thu Jan 28th and Fri Jan 29th.
Registration fee for participant from academic institution is Rs 400
and for others Rs 2000. For more info visit:
http://avitfossclub.org/

To get an idea, visit the previous workshop pages:
http://fossee.in/Py-UC-09

Bye :)
-- 
Bharathi S
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] how to merge directory contents

2010-01-13 Thread sivakumar
On Wed, 2010-01-13 at 20:34 +0530, Saravanan S wrote:
 them together into same common directories.
 Suggestions please. 

I dont know how squashfs works, but still let 
me give it one more try. Will taring up from your source and restoring
it in your destination help ?

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] how to merge directory contents

2010-01-13 Thread swamynathan
possibly write a shell or python script

On Wed, Jan 13, 2010 at 8:11 PM, Saravanan S dearsarava...@gmail.comwrote:

 Hi all,
  I need to merge the contents of several directories, into a single
 directory structure,
 Like i have
 dir1/a/1
 dir1/b/2
 dir2/a/10
 dir2/b/20

 after merging dir1 and dir2, i should get,

 dirnew/a/1 and 10
 dirnew/b/2 and 20

 How to do this easily?


 Saravanan Sundaramoorthy
 Red Hat Certified Engineer
 +91 99404 32545
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
with love from India,
swamy , wattabottles
http://meswamy.blogspot.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Error in Mysql installation in Slackware

2010-01-13 Thread Saravanan S
Hi all,
   I have installed mysql package(mysql-5.0.37-x86_64_slamd64-1.tgz) in
slackware 12, i could not run mysql after reinstalling it.

If i run mysql_install_db, it throws following error:

my...@saasqa-arch-t03a:~$ mysql_install_db
Didn't find /usr/local/mysql/bin/mysqld
You should do a 'make install' before executing this script

if i start mysqld_safe

my...@saasqa-arch-t03a:~$ mysqld_safe
nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/abcd-.pid
100113 22:16:22  mysqld ended

Please help



Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Any Old Lap Tops ? [ mainly for wordprocessing ]

2010-01-13 Thread Thiagaraja Pillai
Shall I get any old laptops ?

It is mainly for word processing.


thanks

thiagu



-- 
-
Home :
Thiagarajan.N
45 A, Subramania Pillai Street,
Near Old Bus Stand,
Salem 636001
Tamil Nadu, India
Phone :427 2266853
Cell: 9366655511

Work :
Holy Cross Matriculation Higher Secondary School,
K.N. Colony, [ Ammapet - Udayapatti Area ]
Salem 636014.
Tamil Nadu, India
Ph : 2240888, 2240430  fax 2240567
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Any Old Lap Tops ? [ mainly for wordprocessing ]

2010-01-13 Thread Sreekanth B
hi

On Thu, Jan 14, 2010 at 7:50 AM, Thiagaraja Pillai thiaguwi...@gmail.comwrote:

 Shall I get any old laptops ?

 It is mainly for word processing.

try in groups like http://groups.yahoo.com/group/freecycleblr/

am not sure if there is a equivalent group for chennai. its a free exchange
group.

- sree
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Any Old Lap Tops ? [ mainly for wordprocessing ]

2010-01-13 Thread Roshan George
On Thu, 2010-01-14 at 08:25 +0530, Sreekanth B wrote:
 hi
 
 On Thu, Jan 14, 2010 at 7:50 AM, Thiagaraja Pillai 
 thiaguwi...@gmail.comwrote:
 
  Shall I get any old laptops ?
 
  It is mainly for word processing.
 
 try in groups like http://groups.yahoo.com/group/freecycleblr/
 
 am not sure if there is a equivalent group for chennai. its a free exchange
 group.

Chennai does have a freecycle group
http://groups.yahoo.com/group/Freecycle_Chennai/messages. However,
there is no point to posting there.

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc