Sponsored Content
Top Forums Shell Programming and Scripting [FUN] Get some stats of your project/s Post 302943289 by sea on Thursday 7th of May 2015 04:58:58 AM
Old 05-07-2015
Limiting the files found to only files starting with st* is alot faster, due to a smaller list size.

After changing the find line to:
Code:
 $(find . -type f -name "*"|grep -ve jpg$ -ve png$ -ve svg$ -ve \.git) )

Its printing (almost) the same stats in quite near range (imo, regarding the task done)....
Org:
Code:
real	0m0.581s
user	0m0.195s
sys	0m0.742s

New:
Code:
real	0m0.402s
user	0m0.385s
sys	0m0.026s

Only value changed is 'blank lines', raised from ~200 to ~1800. Smilie
Eventhough i've (theoreticly) removed more image files - which shouldnt contain empty lines anyway....

Last edited by sea; 05-07-2015 at 06:05 AM..
 

6 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Fun with FreeBSD

Fun With Automounting on FreeBSD Link: Nice tips for FreeBSD Unix. http://ezine.daemonnews.org/200202/automounting.html (2 Replies)
Discussion started by: killerserv
2 Replies

2. Solaris

SSH doesn't pick up user's project from /etc/project

We have a system running ssh. When a user logs in, they do not get the project they are assigned to (they run under "system"). I verify the project using the command "ps -e -o user,pid,ppid,args,project". If you do a "su - username", the user does get the project they are assigned to (and all... (2 Replies)
Discussion started by: kurgan
2 Replies

3. What is on Your Mind?

fun scripts

Lets get a list of everyones funny scripts (8 Replies)
Discussion started by: JamieMurry
8 Replies

4. Solaris

what is the use of /etc/project file and project administration commands?

i have two doubts.. 1. what is the use /etc/project file. i renamed this file and when i tried to switch user or login with some user account the login was happening slowly. but when i renamed it to original name it was working fine... why so? 2. unix already has useradd and grouadd for... (4 Replies)
Discussion started by: chidori
4 Replies

5. News, Links, Events and Announcements

A new project was posted on The UNIX and Linux Forums project board.

A new project was posted on your project board. Project title: Bash Shell Tutoring Estimated Budget: $50/hr Start date: Immediately Required skills: Linux, Bash, Shell, UNIX I work as a datawarehouse designer and developer. Although I usually stick to the role of an analyst,... (0 Replies)
Discussion started by: Neo
0 Replies

6. Shell Programming and Scripting

FINDING DUPLICATE PROJECT ( directory project )

I have a project tree like that. after running find command with the -no -empty option, i am able to have a list of non empty directory DO_MY_SEARCH="find . -type d -not -empty -print0" MY_EXCLUDE_DIR1=" -e NOT_IN_USE -e RTMAP -e NOT_USEFULL " echo " " > $MY_TEMP_RESULT_1 while... (2 Replies)
Discussion started by: jcdole
2 Replies
Audio::MPD::Common::Stats(3pm)				User Contributed Perl Documentation			    Audio::MPD::Common::Stats(3pm)

NAME
Audio::MPD::Common::Stats - class representing MPD stats VERSION
version 1.120881 DESCRIPTION
The MPD server maintains some general information. Those information can be queried with the mpd modules. Some of those information are served to you as an Audio::MPD::Common::Stats object. An Audio::MPD::Common::Stats object does not update itself regularly, and thus should be used immediately. Note: one should never ever instantiate an Audio::MPD::Common::Stats object directly - use the mpd modules instead. ATTRIBUTES
$stats->artists; Number of artists in the music database. $stats->albums; Number of albums in the music database. $stats->songs; Number of songs in the music database. $stats->uptime; Daemon uptime (time since last startup) in seconds. $stats->playtime; Time length of music played. $stats->db_playtime; Sum of all song times in the music database. $stats->db_update; Last database update in UNIX time. AUTHOR
Jerome Quelin COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-04-01 Audio::MPD::Common::Stats(3pm)
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy