04-11-2011
replace multiple existence of : symbol with one
Infile
Quote:
policy:::cngptpid
policy:::budget87
policy:::cntrstat
Outfile
Quote:
policy:cngptpid
policy:budget87
policy:cntrstat
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have unix script on solaris 5.10.
I have to verify existence of 3 files in path and sleep for 1 hour.
I have tried for 1 file:
if
then
echo " File is found!"
sleep 3600
echo "time delayed"
fi
Please advice (6 Replies)
Discussion started by: ammu
6 Replies
2. Shell Programming and Scripting
Hi,
I want to check multiple files exist or not in a single if statement in korn Shell:confused:.
Please help me
Thanks (1 Reply)
Discussion started by: lathish
1 Replies
3. Shell Programming and Scripting
i have file in which i want to replace a char with new line
please help me out (1 Reply)
Discussion started by: RahulJoshi
1 Replies
4. Linux
Dear Experts
My source file contains the symbol cloud (☁).
How do i replace this ☁ symbol whose Unicode value is 2601 in linux file with single quotes ?
Any help will be much appreciated.
Many thanks (4 Replies)
Discussion started by: pklcnu
4 Replies
5. Windows & DOS: Issues & Discussions
Hi
I want to replace first existence of the character
code I m using is
for /f "tokens=* delims= " %%a in (test2.csv) do (
set str=%%a
echo !str::=,! >> test3.csv
)
However it is replacing all the ':' whereas I want to replace first ':' by ',' and leave rest of the ':' as it is.
... (0 Replies)
Discussion started by: dashing201
0 Replies
6. Shell Programming and Scripting
Hi Forum.
I need a script to wait for all multiple trigger files to be present or else go to sleep for 10 seconds (Number of trigger files can vary). I tried to search on the forum but was not able to find a solution.
I found this code on this forum but it's not working as expected:
for... (6 Replies)
Discussion started by: pchang
6 Replies
7. Shell Programming and Scripting
Hi ,
I have below input file
1.order number is useful.
2.vendor_id is produced.
3.the vandor name is "malawar".
I want output file like
1. order number is useful.
2. vendor_id is produced.
3. the vandor name is VmalawarV.
in input file line number 1.order number there is no... (4 Replies)
Discussion started by: vinothsekark
4 Replies
8. UNIX for Dummies Questions & Answers
I am trying to replace '(' and ')' symbol with nul text using tr command. But i am not able to get the expected output . Please help
# cat test.txt
155170816-(75767Mb)
# tr '(' '' < test.txt
155170816-(75767Mb)
# tr ')' '' < test.txt
155170816-(75767Mb)
#
I want the o/p as
... (8 Replies)
Discussion started by: thomasraj87
8 Replies
9. Shell Programming and Scripting
I want to replace the whitespace with Pipe symbol to do a multiple pattern matching for the whole text "mysqld failed start" and same as for other text messages Below are the messages stored in a file seperate by whitespace
mysqld failed start
nfsd mount failed
rpcbind failed to start
for... (6 Replies)
Discussion started by: kar_333
6 Replies
10. Shell Programming and Scripting
cat file.txt
file 1123.x July 23:222 /cd/hh2/k39/ss2/f7d8d9d8e6r5t4s/dd2/e/s7a/s7a2afa5017d8b975-1.7-1395610245-b22e19bbc477b134
i wish to only extract out the 1.7 (anything within the first - -)
i try to look for the sed command under match the first occurence of pattern but out of luck, my... (6 Replies)
Discussion started by: ctphua
6 Replies
apol(1) General Commands Manual apol(1)
NAME
apol - SELinux policy analysis tool
SYNOPSIS
apol [OPTIONS] [POLICY ...]
DESCRIPTION
apol is a graphical tool that allows the user to inspect aspects of a SELinux policy. The tool allows the user to browse policy components
(types, classes, roles, users, etc.), rules (TE, RBAC, MLS), and file system contexts. The tool also provides in depth analyses of domain
transitions, information flows, and relabeling permissions.
POLICY
apol supports loading a SELinux policy in one of four formats.
source A single text file containing policy source for versions 12 through 21. This file is usually named policy.conf.
binary A single file containing a monolithic kernel binary policy for versions 15 through 21. This file is usually named by version - for
example, policy.20.
modular
A list of policy packages each containing a loadable policy module. The first module listed must be a base module.
policy list
A single text file containing all the information needed to load a policy, usually exported by SETools graphical utilities.
If a policy is not given on the command line then apol will begin with none loaded.
OPTIONS
-h, --help
Print help information and exit.
-V, --version
Print version information and exit.
AUTHOR
This manual page was written by Jeremy A. Mowery <jmowery@tresys.com>.
COPYRIGHT
Copyright(C) 2001-2007 Tresys Technology, LLC
BUGS
Please report bugs via an email to setools-bugs@tresys.com.
SEE ALSO
seinfo(1), sesearch(1), sechecker(1), indexcon(1)
apol(1)