09-03-2015
You are welcome Dinesh, trust me this is one of the BEST forums I have seen till date for learning UNIX and related stuff.
You are very much welcome to join the learning camp. Enjoy learning
Thanks,
R. Singh
"Where there is a SHELL there is a way."
This User Gave Thanks to RavinderSingh13 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
file1.txt :
india pakistan bangladesh
japan canada africa
USA srilanka Nepal
file2.txt
Delhi
Tokyo
washington
I have to cut the first column of file1.txt and apend it with file2.txt as another column like this
Delhi india
Tokyo japan
washington USA
... (4 Replies)
Discussion started by: sakthifire
4 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a file A.txt (tab separated) as below:
pavan chennai/tes/bangalore 100
sunil mangalore/abc/mumbai 230
kumar delhi/nba/andhra 310
I want to change only second column as below . Rest of columns as it is ;The ouput file is also tab... (4 Replies)
Discussion started by: kpavan2004
4 Replies
3. Shell Programming and Scripting
Friends,
File1.txt
abc|0|xyz
123|129|opq
def|0|678
890|pqw|sdf
How do I print the entire line where second column has value is 0?
Expected Result:
abc|0|xyz
def|0|678
Thanks,
Prashant
---------- Post updated at 02:14 PM ---------- Previous update was at 02:06 PM ----------
... (1 Reply)
Discussion started by: ppat7046
1 Replies
4. UNIX for Advanced & Expert Users
I have a kind of a multi-step problem:
What I want to do is: To find the maximum value in the second column, divide the entire column with this value and multiply with a user defined variable (e.g. x=400). The result should be written to a new file.
I.e., find max value of column 2 and perform... (5 Replies)
Discussion started by: Medova
5 Replies
5. Shell Programming and Scripting
Hi,
I have a requirement with,
No~Dt~Notes
1~2011/08/1~"aaa
bbb
ccc
ddd
eee
fff
ggg
hhh"
Single column alone got splitted into multiple lines.
I require the output as
No~Dt~Notes
1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh"
mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
1 Replies
6. Shell Programming and Scripting
Hi,
Can anyone please tell me about how we can delete an entire column from a tab delimited file?
Mu input_file.txt looks like this:
And I want the output as:
I used the below code
nawk -v d="1" 'BEGIN{FS=OFS="\t"}{$d=""}{print}' input_file.txtBut in the output, the first column is... (5 Replies)
Discussion started by: sampoorna
5 Replies
7. Shell Programming and Scripting
Dear fellows, I need your help.
I'm trying to write a script to convert a single column into multiple rows.
But it need to recognize the beginning of the string and set it to its specific Column number.
Each Line (loop) begins with digit (RANGE).
At this moment it's kind of working, but it... (6 Replies)
Discussion started by: AK47
6 Replies
8. UNIX for Dummies Questions & Answers
I have a csv that looks like this:
,yude-to-nap2,0,0,0,0,0
,2twis-yude-to-nap2,0,0,0,0,0
,2tiws-yude-to-nap2,0,0,0,0,0
,2arcos-yude-to-nap2,0,0,0,0,0
and another file named m1 that has a single line of text as content:
Feb 1 15:30:20
How can I fill the whole the empty column of the... (1 Reply)
Discussion started by: RobertoRivera
1 Replies
9. Shell Programming and Scripting
Hi,
I have 2 csv/txt files with single columns. I am trying to merge them using paste, but its not working..
output3.csv:
flowerbomb
everlon-jewelry
sofft
steve-madden
dolce-gabbana-watchoutput2.csv:
http://www1.abc.com/cms/slp/2/Flowerbomb
http://www1.abc.com/cms/slp/2/Everlon-Jewelry... (5 Replies)
Discussion started by: ajayakunuri
5 Replies
10. Shell Programming and Scripting
I want to bring values in the second column into single line for uniq value in the first column.
My input
jvm01, Web 2.0 Feature Pack Library
jvm01, IBM WebSphere JAX-RS
jvm01, Custom01 Shared Library
jvm02, Web 2.0 Feature Pack Library
jvm02, IBM WebSphere JAX-RS
jvm03, Web 2.0 Feature... (10 Replies)
Discussion started by: kchinnam
10 Replies
LEARN ABOUT DEBIAN
init_policy
INIT_POLICY(8) System Administration Utilities INIT_POLICY(8)
NAME
init_policy - initialize TOMOYO Linux policy
SYNOPSIS
init_policy [option]
DESCRIPTION
This program generates templates for all policy files. However, the output should be reviewed because automatically generated exception
policy may contain dangerous or redundant entries.
This program only needs to be run once.
OPTIONS
--file-only-profile
Create profiles with only file-related functionality enabled.
--full-profile
Create profiles with all functionality enabled. [default]
--use_profile=integer
Set the default profile number for the "<kernel>" domain to the specified integer, which must be between 0 and 255. [default=0]
--use_group=integer
Set the default group number for the "<kernel>" domain to the specified integer, which must be between 0 and 255. [default=0]
--max_audit_log=integer
Set the default maximal audit log entries that the kernel will spool in the /sys/kernel/security/tomoyo/audit interface. This value
must be an integer, and can be set to 0 if audit logs are not required. Maximum memory used can also be controlled via the
/sys/kernel/security/tomoyo/stat interface. [default=1024]
--max_learning_entry=integer
Set the default maximum number of ACL entries automatically added to each domain by the kernel when using learning mode. This value
must be an integer, and can be set to o if you do not need learning mode. Maximum memory used can also be controlled using the
/sys/kernel/security/tomoyo/stat interface.
--grant_log=value
Set whether grant logs should be audited. This value can either be "yes" or "no". [default=no]
--reject_log=value
Set whether reject logs should be audited. This value can either be "yes" or "no". [default=yes]
EXAMPLES
Initialize policy
/usr/lib/tomoyo/init_policy
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
Naohiro Aoto <naoto@namazu.org>
Bug fix for 64bit Gentoo.
SEE ALSO
tomoyo-init(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 INIT_POLICY(8)