LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2014, 09:53 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825

No, it shouldn't. You have used *.* as wildcard, wich will only show filenames that contain a dot. If you want to see all files just use * as wildcard.
 
Old 03-23-2014, 10:19 PM   #17
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,214

Original Poster
Rep: Reputation: 159Reputation: 159
There are some small differences in wildcard use in Linux versus Windows.

Thanks,
Andy

Meine Mutter wurde in Deutschland geboren Hannover.
 
Old 03-24-2014, 08:54 AM   #18
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Quote:
Originally Posted by Fixit7 View Post
Thanks.

Using in /bin

du -a -c -h -b *.* > dir.txt

I got this, but it should be a much larger list.
This isn't DOS! "*.*" expands only to those files and directories that have a literal "." in their names, so that's all you got.
 
1 members found this post helpful.
Old 03-24-2014, 09:21 AM   #19
Fixit7
Senior Member
 
Registered: Mar 2014
Distribution: Ubuntu_Mate
Posts: 1,214

Original Poster
Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by rknichols View Post
This isn't DOS! "*.*" expands only to those files and directories that have a literal "." in their names, so that's all you got.
I thought * meant any character.

Pfind works with *.* and finds all files.

Quite aware that it is not Dos. :-)

Andy

Last edited by Fixit7; 03-24-2014 at 09:25 AM.
 
Old 03-24-2014, 10:01 AM   #20
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Quote:
Originally Posted by NotionCommotion View Post
Really?
This thumbnail is... perfect. I think we should document the site this way. Big arrows and explosive red text? Awesome.

looking back its funny to see how many times this thread has changed subjects. To answer the original question:

Use absolute paths, and correct file extensions. That script can be changed into one line of commands. Also, who uses 'zip'? Try tar, or gzip, or even xz!

Last edited by szboardstretcher; 03-24-2014 at 10:04 AM.
 
Old 03-24-2014, 11:59 AM   #21
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by szboardstretcher View Post
Also, who uses 'zip'? Try tar, or gzip, or even xz!
Zip is natively supported by any modern OS, so for being cross platform it is the obvious choice.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 04:59 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 09:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 05:34 PM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 08:57 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 02:41 AM


All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration