LinuxQuestions.org
Review your favorite Linux distribution.
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 05-06-2016, 10:41 PM   #1
cellranking
Member
 
Registered: Jan 2016
Location: washington
Posts: 41

Rep: Reputation: Disabled
Angry scripts


Hi
room

I want to write script to check my file size sort largest size and older date.

Please help
 
Old 05-07-2016, 02:03 AM   #2
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian stretch/sid
Posts: 398
Blog Entries: 14

Rep: Reputation: 241Reputation: 241Reputation: 241
Quote:
Originally Posted by cellranking View Post
I want to write script to check my file size sort largest size and older date.
Where are you stuck?
 
Old 05-07-2016, 05:52 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
The 'room' will be waiting to see some effort.
 
Old 05-07-2016, 10:38 AM   #4
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Xubuntu, Manjaro
Posts: 745
Blog Entries: 3

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
I fail to see why you'd need a script for this. Check out
Code:
man ls
Especially the
Code:
-S
And the
Code:
-t
Options.

Best regards,
HMW
 
Old 05-07-2016, 07:15 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,932

Rep: Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691
Quote:
Originally Posted by cellranking View Post
Hi room

I want to write script to check my file size sort largest size and older date.
Great...so if you want to write a script, then proceed to do so. We are happy to help you, but we will NOT write it for you. Read the "Question Guidelines" link.
 
Old 05-08-2016, 10:47 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Cool

Quote:
Originally Posted by cellranking View Post
Hi
room

I want to write script to check my file size sort largest size and older date.

Please help
LQ has a search button at the menu bar.

Use it and it awesome results will come out.

Here's one: http://www.linuxquestions.org/questi...e-name-915164/

Keyword used: "largest size script"
 
Old 05-09-2016, 08:21 AM   #7
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,091

Rep: Reputation: Disabled
taking @HMW suggestion

Code:
#!/bin/bash
ls -S ~/
then save it using some from of filename of your choice, then change it to make is an executable
Code:
chmod +x {filename}
then run it off the command line
Code:
./filename
then you can use that little bit to build off of...

happy scripting
 
  


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
[Helpful scripts] Useful add-on scripts for B/LFS ReaperX7 Linux From Scratch 1 01-25-2016 06:25 PM
[SOLVED] Why don't intltool perl scripts execute as perl scripts? RandomTroll Linux - Software 19 01-24-2014 04:37 PM
LXer: Python Scripts as a Replacement for Bash Utility Scripts LXer Syndicated Linux News 1 01-17-2013 09:08 AM
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 01:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 01:56 PM


All times are GMT -5. The time now is 12:57 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