nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Help

This is a discussion on Help within the Shell scripting forums, part of the Development/Scripting category; Originally Posted by kavi i opened my word processor and created a file tt. on saving it by default it ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #11 (permalink)  
Old 09-13-2005, 09:09 AM
Junior Member
User
 
Join Date: Sep 2005
Posts: 24
Rep Power: 0
kavi
Default

Quote:
Originally Posted by kavi
i opened my word processor and created a file tt. on saving it by default it came with a .abw extension.
then i used
Code:
find / -name tt* -type f -name
i got many files.........i scrolled up to find my file in /home/user/tt.abw

then i changed the command to
Code:
find /home -name tt* -type f -name
it just came up with two file including the tt.abw
does this help u?
My apologies for my first reply...........the last one is not -name its -print...........
Reply With Quote
Sponsored Links
  #12 (permalink)  
Old 09-13-2005, 03:47 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Quote:
Originally Posted by Gorky
Thanks for the replies.


What is the difference between the two following commands?

find / -iname "*.sxw"

find / ~iname "*.sxw"
Last command is not VAILD one. First one is correct soo use first one.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #13 (permalink)  
Old 09-15-2005, 02:26 AM
Guest
 
Posts: n/a
Default

Thanks rockdalinux for the reply.

The second command worked fine on my system. It combed even the Windows XP side of the computer and gave me an unfathomable output.

When my computer starts, LILO asks whether I want Linux or Windwos XP. The default is Linux. Sometimes I go to the Windows XP side too.

Anyway, both commands worked fine. My question is on the difference between the two.
Reply With Quote
  #14 (permalink)  
Old 09-15-2005, 02:29 AM
Gorky
Guest
 
Posts: n/a
Default

Please understand the name Guest is really Gorky.

I can't edit my messages on this forum.
Reply With Quote
  #15 (permalink)  
Old 09-15-2005, 05:11 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by Gorky
Please understand the name Guest is really Gorky.

I can't edit my messages on this forum.
Because you have not registered yourself on our forum. Guest user can only post new topics or reply to topics. Each and every time guest need to supply image verification code to avoid spam. However you can register yourself and then login. Once logged in as registered user you can edit your post, delete your post, vote in polls as well as post new topic/reply topics without supplying image verification code.

Quote:
What is the difference between the two following commands?
find / -iname "*.sxw"
find / ~iname "*.sxw"
As pointed out by rocky, first command is only valid and correct one, second is not valid command but still it runs on your computer right? Try following all command:
Code:
find / ~yourname "*.sxw"
find / ~myname "*.sxw"
find / ~mygalfriendname "*.sxw"
find / ~laalala "*.sxw"
All command will work. Because all these are illegal syntax so it will be ignored by find command by default. It just print list all the files on root system (/). If your windows partition is mounted on /mnt/c or /mnt/d it will also display those files too.. hope this clears difference between the two.

I recommend you to create a account (click url http://cyberciti.biz/nixcraft/forum/...?mode=register) so that you can edit your own messages. Our main purpose is to help our readers, students, IT professional and share knowledge with each other because of this we all both registered and guest user to post topics/reply on forum

If you have any further question please feel to reply back.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #16 (permalink)  
Old 09-16-2005, 10:29 PM
Junior Member
 
Join Date: Sep 2005
Posts: 1
Rep Power: 0
Gorky
Default

Thanks for the reply nixcraft.
You are very clever at these things. You knew how those so-called illegal command works. I couldn't figure out.
I did register some days ago. However, I did it again now. I hope this will work.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 05:58 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36