06-05-2015
I'm not currently doing any iteration, only one find command. I don't particularly want iteration because that might cause duplicate entries. The multiline syntax \) ... )\ is just for human readability and does not change how find parses the filter.
Mike
Last edited by Michael Stora; 06-05-2015 at 03:14 AM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all
i have a file in my box, which is so huge and full file is in a single line.
In this file i have to look for a pattern "ABC01234567"
In this above mentioned pattern ABC is fixed and number might change . it will a eight digit random number
Thanks so much for all you help
... (1 Reply)
Discussion started by: Prateek007
1 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
I have some files, those are abbreviated (ed,ea, and bi)
company_ed_20100719.txt
company_ea_20100719.txt
company_bi_20100719.txt
I would like to rename these files by replacing
ed with EmployeeDetails
ea with EmployeeAddress
bi with BankInfomration
as
company_... (3 Replies)
Discussion started by: LinuxLearner
3 Replies
4. Shell Programming and Scripting
Hi,
I would like to find a pattern in a file as follows:
I would like to find "or" "OR" "and" "AND" between two numeric values.
I have tried this:
grep '**or*'
But does not work.
Appreciate help on this. (4 Replies)
Discussion started by: pinnacle
4 Replies
5. Shell Programming and Scripting
I need help as to how to write a script in Unix for the following:
We have 3 servers;
The mainframe will FTP them to a folder. In that folder we will need the script to look and see if the specific file name is there and load it to the correct table.
Can anyone pls help me out with... (2 Replies)
Discussion started by: msrahman
2 Replies
6. Shell Programming and Scripting
Hi,
Need your help in this.
I have an input file that has multiple enrollment_number, somewhat like
1234567
8901234
9856321
6732187
7623465
Now i have to search and delete these enrollment_number recursively from all the files that are within multiple sub-directories of a... (10 Replies)
Discussion started by: mukulverma2408
10 Replies
7. Shell Programming and Scripting
Hi All,
I have a file PSU_ 20130805_201308041234522
i want to search this file where variable day=20130805 and curday=20130804
after currday date some numbers will be added.how to search this file by using day and curday.
Thanks in advance. (3 Replies)
Discussion started by: pracheth
3 Replies
8. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
9. Shell Programming and Scripting
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Discussion started by: Klasform
9 Replies
LEARN ABOUT CENTOS
cpg_iteration_next
CPG_ITERATION_NEXT(3) Corosync Cluster Engine Programmer's Manual CPG_ITERATION_NEXT(3)
NAME
cpg_iteration_next - Return next item in iteration of CPG
SYNOPSIS
#include <corosync/cpg.h>
cs_error_t cpg_iteration_next (cpg_iteration_handle_t handle, struct cpg_iteration_description_t *description);
DESCRIPTION
The cpg_iter_next function is used to get next value in iteration. The handle argument is iterator handle obtained by cpg_iteration_inital-
ize(3) function. description is pointer to structure with following definition:
struct cpg_iteration_description_t {
struct cpg_name group;
uint32_t nodeid;
uint32_t pid;
};
where group is name of group, nodeid is ID of connected node and pid is pid of connected process. If iteration was initialized with
CPG_ITERATION_NAME_ONLY iteration type, both nodeid and pid are 0.
RETURN VALUE
This call returns the CS_OK value if successful. If there are no more items to iterate, CS_NO_SECTION error code is returned.
SEE ALSO
cpg_iteration_initialize(3), cpg_overview(8)
CS_ERR_TRY_AGAIN Resource temporarily unavailable
CS_ERR_INVALID_PARAM Invalid argument
CS_ERR_ACCESS Permission denied
CS_ERR_LIBRARY The connection failed
CS_ERR_INTERRUPT System call inturrupted by a signal
CS_ERR_NOT_SUPPORTED The requested protocol/functuality not supported
CS_ERR_MESSAGE_ERROR Incorrect auth message received
CS_ERR_NO_MEMORY Not enough memory to completed the requested task
corosync Man Page 05/03/2012 CPG_ITERATION_NEXT(3)