Hi guys,
Please guide me if you have a solution to this problem. I have tried paste -s but it's not giving the desired output.
I have a file with the following content-
A123 box1
B345 bat2
C431 my_id
A123 service
C431 box1
A123 my_id
I need two different outputs-
OUTPUT1
A123... (6 Replies)
Hi,
I need to join two files based on first column of both files.If first column of first file matches with the first column of second file, then the lines should be merged together and go for next line to check. It is something like:
File one:
110001 abc efd
110002 fgh dfg
110003 ... (10 Replies)
Hi,
I have file1.txt and file2.txt and would like to create file3.txt based on one column in UNIX
Eg:
file1.txt
17328756,0000786623.pdf,0000786623
20115537,0000793892.pdf,0000793892
file2.txt
12521_74_4.zip,0000786623.pdf
12521_15_5.zip,0000793892.pdf
Desired Output
... (5 Replies)
Hi ,
I have few files which contains user name and data transfer rate in MBs and this data is collected for year and for each month report is saved in 12 different files I have to merge all the files to prepare the final report
Files are as below
Similarly I have 10 more files ... (5 Replies)
Hi Friends,
I have a file
file1.txt
1|ABC|3|jul|dhj
2|NHU|4|kil|eu
3|hjd|34|hfd|43
file2.txt
1||3|KING|dhj
2|NHU||k|
3|hjd|34|hd|43
i want to merge file1.txt file2.txt based on the column null values in file2.txif there are any nulls in column values , (5 Replies)
Hi,
Please excuse me , i have searched unix forum, i am unable to find what i expect ,
my query is , i have 2 files of same structure and having 1 similar field/column , i need to merge 2 tables/files based on the one matched field/column (that is field 1),
file 1:... (5 Replies)
Discussion started by: karthikram
5 Replies
LEARN ABOUT HPUX
setrules
setrules(1M)setrules(1M)NAME
setrules - set compartment rules
SYNOPSIS DESCRIPTION
takes the current rules files on the system and puts them into effect. Prior to using this command, changes in the rules files have no
effect on the system. This command can only be used when compartmentalization is enabled (see cmpt_tune(1M)).
Options
recognizes the following option:
Preview the rules.
This option parses the rules files, checking for syntax and semantic errors, but makes no changes to the system.
Security Restrictions
The user invoking this command must have one of the following authorizations:
A user with authorization can invoke this command from any compartment, while a user with authorization can invoke this command from only
those compartments that have read and write access to the directory heirarchy.
See authadm(1M)).
Notes
If a compartment is tagged for automatic discovery of rules using the keyword subsequent runs of command does NOT clear the rules that are
already discovered. This means the rules applied are inconsistent with the rules currently in the directory. To make them consistent,
first run "", and then run where, compartment_name is the name of the compartment which is under for discovery mode and file.rules is the
rules file containing the rules for this compartment.
RETURN VALUE
returns the following values:
Successful completion.
The rules are displayed.
An error occurred.
An error can be caused by the following:
o An invalid option.
o The user does not having permissions to perform the operation.
o A syntax or semantic error in a rule file.
o Other system errors (for example, insufficient system resources).
EXAMPLES
Example 1: Execute to push the configured rules:
Example 2: Execute to push syntactically incorrectly configured rules:
Sample Output:
Error: "/etc/cmpt/11.cmpt.1.rules", line 10 # Unexpected token 'web'
or rule terminated prematurely setrules: Exiting due to parse errors
Example 3: Execute setrules to find any syntactically or semantically incorrectly configured rules:
Sample Output:
Error: "/etc/cmpt/iface.rules", line 10 # Undefined compartment "ooutside".
Error: "/etc/cmpt/iface.rules", line 14 # Undefined compartment "cgi".
SEE ALSO authadm(1M), cmpt_tune(1M), getrules(1M), compartments(4), compartments(5).
setrules(1M)