04-30-2009
Have you tried the command?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
i have 2 input files
1st file is
N1 | N2|N3|N4|N5|N6|N7|N8|N9
4041491000|245160|1|0|0|1|0|0|0
4041401505|152178|1|1|1|1|0|0|0
4041450004|014052|1|1|1|1|0|0|0
4041450005|580916|1|1|1|1|0|0|0
4041491000|230990|1|0|1|1|0|0|0
4041460001|338317|1|1|1|1|0|0|0
2nd file
N1 |... (8 Replies)
Discussion started by: dodasajan
8 Replies
2. Shell Programming and Scripting
Hi,
I have a string in log file from that i need to pick the username.
the string is like this--
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid... (5 Replies)
Discussion started by: namishtiwari
5 Replies
3. Shell Programming and Scripting
Hi experts
I want the proper argument to the grep command so that I need to skip the first few lines(say first 10 lines) and print all the remaining instances of the grep output.
I tried to use grep -m 10 "search text" file*. But this gives the first 10 instances(lines) of the search string.... (7 Replies)
Discussion started by: ks_reddy
7 Replies
4. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
5. Shell Programming and Scripting
Hi
Iam running below script on one text file.
usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
/IP IS/ {IP=$3}
/local/ {HOST=$1}
/PPPoE/ {SUB=$3 ;print IP, HOST, SUB}
' /Scripts/sub_report_$FILE>/Scripts/sub_final_report_.txt
the output is coming as below
IPHOST_NAME SUB ... (16 Replies)
Discussion started by: surender reddy
16 Replies
6. Shell Programming and Scripting
I need a Korn shell script which does the folllowing:-
If there is one "|" (pipe) delimited file so, the script should check the 5th field to be blank or not. if it is a blank tht entire line of the file should be redirected to another file. if the 5th field is not blank it should pass that.
... (4 Replies)
Discussion started by: Juhi Kashyap
4 Replies
7. Shell Programming and Scripting
i have a o/p from find command that needs to be formatted
currently when i'm running
find . -name "v.info"
it is giving below o/p
/o/a/b/c/v.info
/o/a/b/c/d/v.info
/o/aa/bb/cc/v.info
/o/aa/bb/cc/dd/v.info
my requirement is if v.info is coming under sub-directories it shul be... (15 Replies)
Discussion started by: nikhil jain
15 Replies
8. SuSE
Hi,
I am using below code snippet to echo/display the files found
(matching a pattern from searchstring.out file) and the corresponding owner.
while read j
do
echo "Pattern to search is:- $j"
find / -name "*$j*" |\
while read k
do
echo "File found is:- $k"
owner=$(ls... (9 Replies)
Discussion started by: Vipin Batra
9 Replies
9. Shell Programming and Scripting
Hi Experts,
Could you pls help with below query
I have written below script to capture disk utilization and then send the output on mail. But getting unformated output on mail
#!/bin/bash
echo "Hi Sur,">dfoutput.csv
printf '\n' >>dfoutput.csv
echo "Please find BAYSQUAR2 filesystem... (4 Replies)
Discussion started by: as7951
4 Replies
10. UNIX for Beginners Questions & Answers
dump file
2020-01-05 & 234135 ossuser 4 CACLP;
2020-01-05 & 234207 ossuser 3 CACLP;
2020-01-05 & 234307 ossuser 1002 CACLP;
2020-01-05 & 234427 ossuser 0 CACLP;
2020-01-05 & 234429 ossuser 1 CACLP;
Command used awk ... (1 Reply)
Discussion started by: Sagar Singh
1 Replies
LEARN ABOUT CENTOS
qquota
QQUOTA(1) Sun Grid Engine User Commands QQUOTA(1)
NAME
qquota - shows current usage of Sun Grid Engine resource quotas
SYNTAX
qquota [ -h wc_host|wc_hostgroup,... ] [ -help ] [ -l resource_name,... ] [ -u wc_user,... ] [ -P wc_project,... ] [ -pe wc_pe_name,...
] [ -q wc_cqueue,... ] [ -xml ]
DESCRIPTION
qquota shows the current Sun Grid Engine resource quota sets. Only resource quota sets with a positive usage count or a static limit are
printed.
Selection options allow you to filter for specific hosts, cluster queues, projects, parallel environments (pe), resources or users. With-
out any option qquota will display a list of all resource quota sets for the calling user.
OPTIONS
-h wc_host|wc_hostgroup,...
Display only resource quota sets that matches with the hosts in the given wildcard host or hostgroup list. Find the definition of
wc_host and wc_hostgroup in sge_types(1).
-help Prints a listing of all options.
-l resource_name,...
Display only resource quota sets being matched with the resources in the given resource list.
-u wc_user,...
Display only resource quota sets being matched with the users in the given wildcard user list. Find the definition of wc_user in
sge_types(1).
-P wc_project,...
Display only resource quota sets being matched with the projects in the given wildcard project list. Find the definition of
wc_project in sge_types(1).
-pe wc_pe_name,...
Display only resource quota sets being matched with the parallel environments (pe) in the given wildcard pe list. Find the defini-
tion of wc_pe_name in sge_types(1).
-q wc_cqueue,...
Display only resource quota sets being matched with the queues in the given wildcard cluster queue list. Find the definition of
wc_cqueue in sge_types(1).
-xml This option can be used with all other options and changes the output to XML. The schema used is referenced in the XML output. The
output is printed to stdout.
OUTPUT FORMATS
A line is printed for every resource quota with a positive usage count or a static resource. The line consists of
o the resource quota - rule set name/rule name or number of rule in ruleset
o the limit - resource name, the number of used and available entities of that resource
o the effective resource quota set filter
ENVIRONMENTAL VARIABLES
SGE_ROOT Specifies the location of the Sun Grid Engine standard configuration files.
SGE_CELL If set, specifies the default Sun Grid Engine cell. To address a Sun Grid Engine cell qquota uses (in the order of prece-
dence):
The name of the cell specified in the environment variable SGE_CELL, if it is set.
The name of the default cell, i.e. default.
SGE_DEBUG_LEVEL
If set, specifies that debug information should be written to stderr. In addition the level of detail in which debug infor-
mation is generated is defined.
SGE_QMASTER_PORT
If set, specifies the tcp port on which sge_qmaster(8) is expected to listen for communication requests. Most installations
will use a services map entry for the service "sge_qmaster" instead to define that port.
FILES
<sge_root>/<cell>/common/act_qmaster
Sun Grid Engine master host file
<sge_root>/<cell>/common/sge_qquota
cluster qquota default options
$HOME/.sge_qquota
user qquota default options
SEE ALSO
sge_intro(1), qalter(1), qconf(1), qhold(1), qmod(1), qstat(1), qsub(1), queue_conf(5), sge_execd(8), sge_qmaster(8), sge_shepherd(8).
COPYRIGHT
See sge_intro(1) for a full statement of rights and permissions.
SGE 6.2u5 $Date$ QQUOTA(1)