11-15-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose u have a file
12
22
73
another file
L22D SSS
S12J LLL
H77K PPP
J25O LOP
I73S lOP
K99O PLO
so output shud like
S12J LLL
L22D SSS
I73S lOP
Thanks (2 Replies)
Discussion started by: cdfd123
2 Replies
2. Shell Programming and Scripting
Hi all,
I have a question on how to search for a pattern in a file and return a value if it is present at that particular location.
How to read each line and each character for the pattern in the file of any format.
Eg for the file format:
attached the file (1 Reply)
Discussion started by: sparks
1 Replies
3. Shell Programming and Scripting
Hi,
I need to search a file, in each line I need to check for occurance of '1' from a particular position through the next 32 bytes. If 1 is found, i need to return the position. Here is an example of the file and the output i need. Please help. I'm new to perl and unix.
File:
... (1 Reply)
Discussion started by: gpaulose
1 Replies
4. Shell Programming and Scripting
Hi all,
I would like to print words in a file seperated by whitespaces containing a specific pattern like "="
e.g. I have a file1 containing strings like
%cat file1
The= some= in
wish= born
<eof> .I want to display only those words containing = i.e The= , some=,wish=
... (5 Replies)
Discussion started by: sree_123
5 Replies
5. Shell Programming and Scripting
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies
6. Shell Programming and Scripting
Hi All,
I have written the below script that searches for the pattern in a file and delete them if present. please can some one have a look and suggest the changes in the script.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read... (4 Replies)
Discussion started by: Shazin
4 Replies
7. Shell Programming and Scripting
Hi Guys,
I am writing a shell script to extract only the error message from a log file.
I am having difficulty in searching the highlighted text in the below code.
<runtimeinfo datetime="Sun Apr 04 20:02:52 EDT 2008" docid="" source="RAWDATA" event="ERROR"... (2 Replies)
Discussion started by: prash1986
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want.
This is how the data in the file.
INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
Discussion started by: venkatesht
5 Replies
9. Shell Programming and Scripting
The problem is similar to my yesterday post
I Would like an awk script that does the following:
I have a file (f1) that contains 1
2
3
4
5and another one (f2) that contains 8|a
9|b
0|c
1|d
2|e
3|f
4|g
5|h
6|i
7|jAnd I'd like to get this:
1|d
2|e
3|f
4|g (5 Replies)
Discussion started by: tukuyomi
5 Replies
10. Shell Programming and Scripting
Hi All,
i have an output of command vmstat as below :
$ vmstat
System configuration: lcpu=4 mem=5376MB ent=1.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi... (10 Replies)
Discussion started by: omkar.jadhav
10 Replies
LEARN ABOUT OSF1
acl_copy_int
acl_copy_int(3) Library Functions Manual acl_copy_int(3)
NAME
acl_copy_int - Copies the ACL from contiguous, persistent format to internal working space format
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
acl_t acl_copy_int( void *buf_p);
PARAMETERS
The buffer containing the contiguous, persistent form of the ACL to be copied.
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_copy_int() function copies the contents of the ACL from the buffer pointed to by buf_p to the working storage internal format.
Space is allocated as required. Upon successful completion, a pointer to the ACL internal working storage is returned.
RETURN VALUES
Upon successful completion, the acl_copy_int function returns a pointer to the working storage. Otherwise a NULL pointer is returned and
errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the acl_copy_int() function sets errno to the corresponding value:
The ACL referenced by buf_p is not valid.
The ACL working storage could not be allocated.
RELATED INFORMATION
acl_copy_ext(3)
Security delim off
acl_copy_int(3)