Here is my problem..
1. I want to search all those files with file name starting AJ128****
(in all the sub directories also)
2. I want to search for the follwoing type of string
line beging with string - 'AK*any_1_char*any_2_char*510'
3. I need to display list of file names... (2 Replies)
Hi,
I need to search for a multiple string pattern(5 key words) in a file(similar to a flat file) ,and i need to store the output in a another file .
In that file we may have mutiple occurrences of the key words.and i need only the unique.
kindly help out.
Thanks,
Mohana Krishnan (2 Replies)
Hi All,
I have a string assigned to a variable. the string will be a filename. Something like below:
file=testfile.dat.20009080_{arc}_2004809090
I need to check if the filename has a pattern like "_{arc}_" and if so I have to rename the file like below
mv... (6 Replies)
guys,
I need to know how to assing pattern matched string as an input command variable. Here it goes'
My script is something like this.
./routing.sh <Server> <enable|disable>
## This Script takes an input <Server> variable from this line of the script ##
echo $1 | egrep... (1 Reply)
I've got a semicolon delimited file. I would like to search for fields that match a pattern, and not hardcoded eg "mth".
*th=something
If the delimited field fulfills this condition, eg. mth=value
I would like to print out both key and value for some number comparison.
eg. if value > "12"... (5 Replies)
Hello all,
after spending hours of searching the web I decided to create an account here. This is my first post and I hope one of the experts can help.
I need to resolve a grep / sed / xargs / awk problem.
My input file is just like this:
----------------------------------... (6 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Hello,
I have a file which has the below contents :
VG_name LV_name LV_size in MB LV_option LV_mountpoint owner group y
testdg rahul2lv 10 "-A y -L" /home/abc2 ... (6 Replies)
Hi,
How can I use find command to search string/pattern in a file recursively?
What I tried:
find . -type f -exec cat {} | grep "make" \;
Output:
grep: find: ;: No such file or directory
missing argument to `-exec'
And this:
find . -type f -exec cat {} \; -exec grep "make" {} \;... (12 Replies)
How to grep for searching a string within a begin and end pattern of a file.
Sent from my Redmi 3S using Tapatalk (8 Replies)
Discussion started by: Baishali
8 Replies
LEARN ABOUT OSF1
sync2
sync2(2) System Calls Manual sync2(2)NAME
sync2 - Flush file system metadata and data from memory buffers to disk
SYNOPSIS
#include <sys/mount.h>
int sync2 (
unsigned int POLICY ,
char *path);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
sync2(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Flush the file system memory buffers to disk. The argument is one of the following: Flush all memory buffers. Specifying this flag causes
the function to behave the same as the sync function. See sync(2). Flush all memory buffers except those under smooth sync control. The
name of a file system or fileset. Specify the optional path parameter when you want to have the POLICY act only on that file system
instead of all file systems. Specify a NULL argument when you want to have the POLICY act on all file systems.
DESCRIPTION
The sync2 function causes file system data to be flushed (written) to disk. Which memory buffers are flushed to disk depends on the POLICY
argument.
If the policy is SYNC_SYNCPOLICY, all memory buffers are flushed to disk. If the policy is SYNC_SMOOTHSYNCPOLICY, all memory buffers
except those under smooth sync control are flushed to disk.
To which file systems the POLICY argument applies depends on the path argument. To apply the policy to one file system, name it in the
path argument. To apply the policy to all file systems, specify the path argument as NULL.
The writing, although scheduled, is not necessarily complete upon return from the sync2 function.
RELATED INFORMATION
Functions: sync(2)
Commands: sync(8)
Standards: standards(5) delim off
sync2(2)