02-15-2013
How many keywords in the file, how many bytes? Command lines have their limits.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I am trying a script which takes user input userid . I am stuck how to check whether that is a valid user id or not in the audit log files. My code is :
cd $CCP_AUDIT
cat * > /export/home/$USR/l***/files
echo "UserId:\c"
read UserId
#Date Function
echo "DATE : \c"
read xxx
I... (7 Replies)
Discussion started by: gundu
7 Replies
2. UNIX for Dummies Questions & Answers
alist contain:
a
b
c
d
e
blist contain:
a
b
c
the code:
#!/usr/bin/ksh
cat blist | while read line
do
grep -V "$line" alist > data
done (8 Replies)
Discussion started by: bobo
8 Replies
3. Shell Programming and Scripting
Hi All,
Reference to my previous post
I need to compare all the lines in the file1 with file2
for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date.
need output in file3
10/04/2008
09/04/2008
09/04/2008
08/04/2008
can anyone suggest me
Thanks... (0 Replies)
Discussion started by: karthikn7974
0 Replies
4. Shell Programming and Scripting
Hello All,
I have been reading posts on here for a while, but this is my first post. I have a document in which many sentences appear, and I am piping it through an exterior script which will tag each word in the document with its part of speech (not part of my script, just background). The... (3 Replies)
Discussion started by: daf189
3 Replies
5. Shell Programming and Scripting
Hi all,
I have the below script to get input but i cannot get grep to work.
input1.txt
AAAAAAAAG
input2.txt
>gi|184009.1| LEAFY-like |AAAAAAAAGSGGGDHLPY
However, when i use grep -f input1.txt input2.txt
i cannot get any output matches (note that the match is underlined).
Is it... (8 Replies)
Discussion started by: turkishvan
8 Replies
6. UNIX for Dummies Questions & Answers
:wall:
I have a requirement to search a log file that never rotates for certain values. If I find them I pipe them to a another file. To log file is constanyl being appened with new lines and never rotating Easy so far.
The problem is I dont want to pipe out matches already seen before. ... (3 Replies)
Discussion started by: gunnahafta
3 Replies
7. Shell Programming and Scripting
So this is what I'm trying to do:
I have a file called registry.txt which has a list of registry entries I want to search for.
I have another file called inctrl.txt on which I want to perform the search on.
Here's the example contents of registry.txt
SOFTWARE\Microsoft\Security... (3 Replies)
Discussion started by: r4v3n
3 Replies
8. Red Hat
Hello everybody,
I have been searching it, but it seems I am unable to find the correct information, that s why I am asking you guys, hoping somebody get an idea.
Here is my problem :
I want a script to loop until a string is identified in a log file.
Here is the script :
#!/bin/sh... (5 Replies)
Discussion started by: guyiom
5 Replies
9. UNIX for Beginners Questions & Answers
Hello -
I am running a script that is outputting to a log. Let call it output.log
I would like to monitor that log until the line "Build Successful" is found.
I think I would need to use the grep command.
How would I do that in a loop?
Thanks
Marty (1 Reply)
Discussion started by: MSpeare
1 Replies
10. Shell Programming and Scripting
Hello,
I have built the following script to check if processes supplied by the argument are running or not.
#!/bin/bash
PROCLIST=$1
PROCESS="0"
ERROR_PROCS=""
IFS='+'
read -ra ADDR <<< "$PROCLIST"
for PROC in "${ADDR}"; do
if ; then
PROCESS=1
... (9 Replies)
Discussion started by: nms
9 Replies
LEARN ABOUT MINIX
edquota
edquota(1M) System Administration Commands edquota(1M)
NAME
edquota - edit user quotas for ufs file system
SYNOPSIS
edquota [-p proto_user] username...
edquota -t
DESCRIPTION
edquota is a quota editor. One or more users may be specified on the command line. For each user a temporary file is created with an ASCII
representation of the current disk quotas for that user for each mounted ufs file system that has a quotas file, and an editor is then
invoked on the file. The quotas may then be modified, new quotas added, etc. Upon leaving the editor, edquota reads the temporary file and
modifies the binary quota files to reflect the changes made.
The editor invoked is vi(1) unless the EDITOR environment variable specifies otherwise.
Only the super-user may edit quotas. In order for quotas to be established on a file system, the root directory of the file system must
contain a file, owned by root, called quotas. (See quotaon(1M).)
proto_user and username can be numeric, corresponding to the UID of a user. Unassigned UIDs may be specified; unassigned names may not. In
this way, default quotas can be established for users who are later assigned a UID.
If no options are specified, the temporary file created will have one or more lines of the format, where a block is considered to be a 1024
byte(1K) block:
fs mount_point blocks (soft =number,
hard =number ) inodes (soft =number,
hard =number)
The number fields may be modified to reflect desired values.
OPTIONS
The following options are supported:
-p Duplicate the quotas of the proto_user specified for each username specified. This is the normal mechanism used to initialize quo-
tas for groups of users.
-t Edit the soft time limits for each file system. If the time limits are zero, the default time limits in
/usr/include/sys/fs/ufs_quota.h are used. The temporary file created will have one or more lines of the form
fs mount_point blocks time limit = number tmunit, files time limit = number tmunit
tmunit may be one of ``month'', ``week'', ``day'', ``hour'', ``min'' or ``sec''; characters appended to these keywords are ignored, so you
may write ``months'' or ``minutes'' if you prefer. The number and tmunit fields may be modified to set desired values. Time limits are
printed in the greatest possible time unit such that the value is greater than or equal to one. If ``default'' is printed after the tmunit,
this indicates that the value shown is zero (the default).
USAGE
See largefile(5) for the description of the behavior of edquota when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
FILES
quotas quota file at the file system root
/etc/mnttab table of mounted file systems
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
vi(1), quota(1M), quotacheck(1M), quotaon(1M), repquota(1M), attributes(5), largefile(5), quotactl(7I)
NOTES
All UIDs can be assigned quotas.
SunOS 5.10 14 Feb 2003 edquota(1M)