Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2003 05:33 AM
тАО09-25-2003 05:33 AM
Awk
Kyle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2003 08:04 AM
тАО09-25-2003 08:04 AM
Re: Awk
find / -name "*" -size +10000 -print
just adapt path to your need like
"find /tpm/blabla"
never had to do it any other way' will invetigate how to this in awk, if you still need it
keep us informed of progress.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2003 01:41 PM
тАО09-25-2003 01:41 PM
Re: Awk
what is greater than 10000? file size
find . -size +10000c
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2003 04:12 AM
тАО09-26-2003 04:12 AM
Re: Awk
du |sort -nr |more
this will show you the size of ALL files below you current working directory starting with the largest files at the top and the smallest at the bottom. If you want file sizes in Kbytes then add a -k to the du command
ie. du -k | sort -rn | more
But I would use the find command as it is a lot cooler and a better command to master in the long run.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 12:06 AM
тАО09-29-2003 12:06 AM
Re: Awk
if it's about file size then your question has been answered already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 12:43 AM
тАО09-29-2003 12:43 AM
Re: Awk
First do 'updatedb' (it's done 5 mn after system boot each time, so don't do it if you didn't install sth new).
Then locate 'filename', it search in the database made thru updatedb, it's faster than find command...
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2003 04:26 AM
тАО09-29-2003 04:26 AM
Re: Awk
For example:
for i in `locate *.h|grep
something like that.
I hope that helps,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 01:36 AM
тАО09-30-2003 01:36 AM
Re: Awk
create the script then run ls -l and pipe into the script (I named it newbgfile)
ll | newbgfile 6
6 is the minum number of digit for the size.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/ksh
if [ $# -eq 1 ]; then
num=$1
else
num=7
fi
awk -v numlen=$num '{
if(length($5) > numlen ) print $0; }'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rgds,
Jean-Luc