Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Editing the alphabet's based on position information Post 302822001 by RudiC on Sunday 16th of June 2013 01:54:01 PM
Old 06-16-2013
So you have ">SAM" in the file? I read it as being a prompt and a command... In your spec, you didn't count it nor took it into account! Should have mentioned that.
Add FNR > 1 to the second line...

Last edited by RudiC; 06-16-2013 at 04:21 PM.. Reason: typo
 

8 More Discussions You Might Find Interesting

1. HP-UX

[Solved] processor type and bit information

Hi, I'm trying to download a compatible Oracle Client software for a HP-UX machine. I'd like to know if ... 1) HP-UX is 32 bit or 64 bit? 2) Processor type - Itanium or regular? when I execute uname -a I get HP-UX B.11.11 U 9000/800 728684161 unlimited-user license Based on the... (7 Replies)
Discussion started by: luft
7 Replies

2. Shell Programming and Scripting

Selective position file editing inside folder

I need to process 4 files having name pattern as followis:- 1) Each file starts with = ABCJmdmfbsjop letters + 7 Digit Number _mm-dd-yyyy-hh-mm-ss-3 Digit Number.data where ABCJmdmfbsjop :- is alphabet. Each file starts with this ABCJmdmfbsjop alphabet. 7 Digit Number :- Numeric 7 digits. __:-... (1 Reply)
Discussion started by: lancesunny
1 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Find position of character with awk

Hi Guys! Could anyone help me with?.. I have a line which says BCVGF%6$#900 .....How can we know which position is for % or say $ by command or script?There is any way to get a prompt by any script? Thanks a lot (6 Replies)
Discussion started by: Indra2011
6 Replies

4. Shell Programming and Scripting

[Solved] Array for parameters from 5th position

Hi All, I am writing a script where the first 5 parameters are mandatory but the script should be able to handle a maximum of 9 parameters (with the remainig 4 optional) I would like to load all parameters from 5th parameter positioninto an array. the piece of code I am writing for this:... (0 Replies)
Discussion started by: snailrider
0 Replies

5. Shell Programming and Scripting

[Solved] Need help in editing a script

Hi, I have one script in my cronjob, which is fetching file from a ftp site and making a copy with today's date and time. This is a new setup. There was a instance when test_bill.txt was not present on ftp.xxxx_xxxx.com and when this job ran and did not fetched file, still it send mail of... (5 Replies)
Discussion started by: solaris_1977
5 Replies

6. Shell Programming and Scripting

[Solved] How can I pull specific information from PS?

I need to grab information from the output of the ps command. For each line of ps output that contains _progres -b I need to get the word that follows -p. The "-p" can be anywhere after "_progres -b". Using grep to select the correct lines is no problem (e.g. ps -ef|grep "_progres \-b|grep -v... (3 Replies)
Discussion started by: Papa Lee
3 Replies

7. Shell Programming and Scripting

[Solved] Extracting information from DDL's

Dear Experts, I need your help here. I have lot of teradata DDL's as follows, i want to extract field names , field attributes and NOT NULL information from DDL.Could you please help here. Sample DDL: CREATE MULTISET TABLE APS_CALL_IN_PICKUP_CANCELED ,NO FALLBACK , NO BEFORE... (2 Replies)
Discussion started by: srikanth38
2 Replies

8. Shell Programming and Scripting

Search for a string at a particular position and replace with blank based on position

Hi, I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
semanage_fcontext(3)					   Libsemanage API documentation				      semanage_fcontext(3)

NAME
semanage_fcontext - SELinux File Context Management API SYNOPSIS
#include <semanage/fcontext_record.h> #include <semanage/fcontexts_policy.h> #include <semanage/fcontexts_local.h> This object contains properties associated with a SELinux file context specification For details on a specific function, see its manual page. Record API Overview semanage_fcontext_create(3)- create a file context spec semanage_fcontext_free(3)- release resources for this file context spec semanage_fcontext_key_create(3)- create a key, which can be used to identify a file context spec semanage_fcontext_key_free(3)- release resources for this file context spec key semanage_fcontext_key_extract(3)- create a key matching this file context spec semanage_fcontext_clone(3)- create an identical file context spec (deep-copy clone) semanage_fcontext_compare(3)- compare this file context spec to the provided key semanage_fcontext_compare2(3)- compare this file context spec to another Properties API Overview semanage_fcontext_get_expr(3)- return the regular expression for this file context spec semanage_fcontext_set_expr(3)- set the regular expression for this file context spec semanage_fcontext_get_type(3)- return the file type for this file context spec semanage_fcontext_get_type_str(3)- return a string representation for this file context spec type semanage_fcontext_set_type(3)- set the file type for this file context spec semanage_fcontext_get_con(3)- return the SELinux context for this file context spec semanage_fcontext_set_expr(3)- set the SELinux context for this file context spec Record Store API Overview semanage_fcontext_modify_local(3)- add or update a file context spec in the local store semanage_fcontext_del_local(3)- delete a file context spec from the local store semanage_fcontext_exists(3)- check if a file context spec is defined in the persistent policy semanage_fcontext_exists_local(3)- check if a file context spec is defined in the local store semanage_fcontext_query(3)- query a file context spec in the persistent policy semanage_fcontext_query_local(3)- query a file context spec in the local store semanage_fcontext_count(3)- count the number of file context specs defined in the persistent policy semanage_fcontext_count_local(3)- count the number of file context specs defined in the local store semanage_fcontext_iterate(3)- execute a callback for each file context spec in the persistent policy semanage_fcontext_iterate_local(3)- execute a callback for each file context spec in the local store semanage_fcontext_list(3)- return an array containing all file context specs in the persistent policy semanage_fcontext_list_local(3)- return an array containing all file context specs in the local store ivg2@cornell.edu 16 March 2006 semanage_fcontext(3)
All times are GMT -4. The time now is 12:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy