Sponsored Content
Full Discussion: Improvement in shell script
Top Forums UNIX for Dummies Questions & Answers Improvement in shell script Post 302906834 by Corona688 on Monday 23rd of June 2014 10:29:33 PM
Old 06-23-2014
Again -- why? Who has tasked you with this? They are being unreasonable.
 

7 More Discussions You Might Find Interesting

1. Programming

File - reading - Performance improvement

Hi All I am reading a huge file of size 2GB atleast. I am reading each line and cutting certain columns and writing it to another file. Here is the logic. int main() { string u_line; string Char_List; string u_file; int line_pos; string temp_form_u_file; ... (10 Replies)
Discussion started by: dhanamurthy
10 Replies

2. Shell Programming and Scripting

Script ready but might need some improvement.

Hi All, I have written a script which does some editing in the files, based on user input.This might not be the most elegant way of doing it and there would be many improvements needed. Please go through it and let me know how it could be improved. Suggestions are welcome!! Thanks!... (2 Replies)
Discussion started by: nua7
2 Replies

3. Shell Programming and Scripting

Any improvement possible in this script

Hi! Thank you for the help yesterday This is the finished product There is one more thing I would like to do to it but I’m not to certain On how to proceed I would like to log all output to a log in order to Be able to roll back This script is meant to be used in repairing a... (4 Replies)
Discussion started by: Ex-Capsa
4 Replies

4. Shell Programming and Scripting

Looking for improvement to script that compresses a directory that is 2 months old

I write reports daily to a directory that is named with the month and year. I wanted to compress all but the last two months worth of these directories to save space. I am going to cron a job to run on the first of each month to do this clean up. I didn't have zip/unzip on my AIX environment so... (0 Replies)
Discussion started by: slatoms
0 Replies

5. UNIX for Advanced & Expert Users

linux os improvement

can anyone help to share the knowledge on linux os improvement? 1) os account - use window AD authentication, such as ldap, but how to set /etc/passwd, where to put user home? 2) user account activity - how to log os user activity share the idea and what tools can do that...thx (5 Replies)
Discussion started by: goodbid
5 Replies

6. Shell Programming and Scripting

I need the improvement for my script

Hi All, Here is my script #! /bin/sh var1=some email id var2=some email id grep -i "FAILED FILE FORMAT VALIDATION" /opt >tmp2 diff tmp1 tmp2 | grep ">" >tmp3 if then cat tmp3 | mailx -s " Error Monitoring" $var2 else echo "Pattern NOt Found" | mailx -s " Error Monitoring" $var1... (1 Reply)
Discussion started by: Gopalak
1 Replies

7. Shell Programming and Scripting

Performance improvement in grep

Below script is used to search numeric data from around 400 files in a folder. I have 300 such folders. Need help in performance improvement in the script. Below Script searches 20 such folders ( 300 files in each folder) simultaneously. This increases cpu utilization upto 90% What changes... (3 Replies)
Discussion started by: vegasluxor
3 Replies
QUOTACHECK(8)						    BSD System Manager's Manual 					     QUOTACHECK(8)

NAME
quotacheck -- file system quota consistency checker SYNOPSIS
quotacheck [-guv] [-c 32 | 64] [-l maxrun] -a quotacheck [-guv] [-c 32 | 64] filesystem ... DESCRIPTION
The quotacheck utility examines each file system, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the file system. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active file system is checked). By default both user and group quotas are checked. The following options are available: -a If supplied in place of any file system names, quotacheck will check all the file systems indicated in /etc/fstab to be read-write with disk quotas. By default only the types of quotas listed in /etc/fstab are checked. -c 32 | 64 Before performing its checks, quotacheck will convert the quota file to the specified word size. A conversion size of 64 is given to request conversion to the new 64-bit quota file format. A conversion size of 32 is given to request conversion back to the old 32-bit quota file format. The original quota file is left unchanged and moved aside with an underscore and its format size plus a .orig extension added to its name. Thus, the original 32-bit quota.user quota file converted to the 64-bit format quota file will be renamed to quota.user_32.orig. -g Only group quotas listed in /etc/fstab are to be checked. -l maxrun Specifies the maximum number of concurrent file systems to check in parallel. If this option is omitted, or if maxrun is zero, par- allel passes are run as per fsck(8). This option is deprecated and parallel passes are always run as per fsck(8). -u Only user quotas listed in /etc/fstab are to be checked. -v Report discrepancies between the calculated and recorded disk quotas and other additional diagnostic messages. Specifying both -g and -u is equivalent to the default. Parallel passes are run on the file systems required, using the pass numbers in /etc/fstab in an identical fashion to fsck(8). Normally, quotacheck operates silently. The quotacheck utility expects each file system to be checked to have a quota files named quota.user and quota.group which are located at the root of the associated file system. These defaults may be overridden in /etc/fstab. If a file is not present, quotacheck will create it. These files should be edited with the edquota(8) utility. The quotacheck utility is normally run at boot time from the /etc/rc file. The rc startup procedure is controlled by the /etc/rc.conf vari- able check_quotas. Note that to enable this functionality in /etc/rc you also need to enable startup quota procedures with the variable enable_quotas in /etc/rc.conf. The kernel must also be built with options QUOTA. The quotacheck utility accesses the raw device in calculating the actual disk usage for each user. Thus, the file systems checked should be quiescent while quotacheck is running. FILES
quota.user at the file system root with user quotas quota.group at the file system root with group quotas /etc/fstab default file systems SEE ALSO
quota(1), quotactl(2), fstab(5), rc.conf(5), edquota(8), fsck(8), quotaon(8), repquota(8) HISTORY
The quotacheck utility appeared in 4.2BSD. BUGS
The quota system will ignore UIDs or GIDs that would be negative when evaluated as a signed value. Typically those types of ids can appear in the file system from NFS mounts or archive files from other operating systems. Extremely large UIDs or GIDs will cause quotacheck to run for an unreasonable amount of time and also produce extremely large quota data files. BSD
January 25, 2007 BSD
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy