Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, guys! Can somebody help me? I need a bash script, wich shows which file is larger by size. E.g. enter first file name (I enter name) enter second file ...
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    6

    Script which compares size

    Hi, guys! Can somebody help me? I need a bash script, wich shows which file is larger by size. E.g. enter first file name
    (I enter name)
    enter second file name
    (I enter name)
    file "name" is bigger.
    Something like that.

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    Hi there. Remember... size isn't really that important.

    May I suggest that you take a stab at your homework first before you just ask us to do it for you?
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    6
    Actualy it is homework and i done that now i just need to know how to make script search for file in whole hdd

  4. #4
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Hello and welcome!

    Homework questions are not allowed:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    However, you are welcome to post your code and someone might be able to help you with any errors in it.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...