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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  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
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,844
    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 offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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

Posting Permissions

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