03-07-2017
Hi Jim,
Thanks a lot for your reply.
In my case timestamp is already in the file name. so i just need to select the files which meets the date range. Lets say i have below files.
f1_1
f1_2
f1_3
f1_4
f1_5
and if my input is 2 and 4. I should get the files 2,3 and 4. Something like between clause but with file name.
Thanks
Bharat
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
How can I search all files in all slices on a unix system for a particular string within the file.
e.g search string 'oracle'
Thanks (4 Replies)
Discussion started by: sureshy
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Lets say I have 3 files a.txt and b.txt and c.txt.
a.txt has the following text
====================
apple is good for health
b.txt has the following text
====================
apple is pomme in french
c.txt has the following text
====================
orange has citric acid... (1 Reply)
Discussion started by: amjath78
1 Replies
3. Shell Programming and Scripting
Hello,
I want an one line command that brings me back all the files in a folder that contain 4 specific words anywhere inside them.
I want to use find,xargs and grep. for example i know for one word the command would be:
find . | xargs grep 'Word1'
But i don't know for 4 specific words... (13 Replies)
Discussion started by: WoodenSword
13 Replies
4. Shell Programming and Scripting
say I have a file named phones
in that file every line is like that
lastname^firstname^phone
how can I make a program in cshell that searches for a specific string
in phones and echos the result (if found) like that:
lastname1
firstname1
phone1
------------------
lastname2
firstname2... (8 Replies)
Discussion started by: h4wk
8 Replies
5. Shell Programming and Scripting
Hi all,
I need UNIX command that would give me all files without the string "4R" anywhere in the file. I have about a hundred files in my directory, and I need to list all files wihtout the string "4R" anywhere. Can anyone help me please? Thank you.l (4 Replies)
Discussion started by: risk_sly
4 Replies
6. UNIX for Dummies Questions & Answers
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
Discussion started by: mwrg
7 Replies
7. Shell Programming and Scripting
Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output to be in the form
File1<tab>string instance 2<tab> string instance 2<tab>string instance 3... (6 Replies)
Discussion started by: pkabali
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have following files in a directory with '.meta' extension, which have data in follwoing patterns. i need to print data from these files in below metioned format. please provide a script for this solution.
file names:
TEST_HISTORY_MTH.meta
AB_TEST_1.meta
cat... (2 Replies)
Discussion started by: AAHinka
2 Replies
9. Shell Programming and Scripting
Hi,
I have a requirement to create a shell script(tcsh) that finds all the files in a directory having the file name containing date format "YYYYMMDDHHMM" and extract the date time part ""YYYYMMDDHHMM" for further processing.
Could you please have any idea on this.
trades_201604040000.out... (6 Replies)
Discussion started by: gopal.biswal
6 Replies
10. Shell Programming and Scripting
I have been running a program mseed2sac using the following command
cd IV
find . -type f -exec /swadmin/mseed2sac '{}' \;
The problem is that I end up with a lot of files in directory IV.
Instead I would like to select the designator HHZ, create a
directory IV.SAC and all the files output... (11 Replies)
Discussion started by: kristinu
11 Replies
LEARN ABOUT LINUX
__ppc_set_ppr_low
__PPC_SET_PPR_MED(3) LinuxProgrammer's Manual __PPC_SET_PPR_MED(3)
NAME
__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high - Set the Program Priority Reg-
ister
SYNOPSIS
#include <sys/platform/ppc.h>
void __ppc_set_ppr_med(void);
void __ppc_set_ppr_very_low(void);
void __ppc_set_ppr_low(void);
void __ppc_set_ppr_med_low(void);
void __ppc_set_ppr_med_high(void);
DESCRIPTION
These functions provide access to the Program Priority Register (PPR) on the Power architecture.
The PPR is a 64-bit register that controls the program's priority. By adjusting the PPR value the programmer may improve system throughput
by causing system resources to be used more efficiently, especially in contention situations. The available unprivileged states are cov-
ered by the following functions:
* __ppc_set_ppr_med() sets the Program Priority Register value to medium (default).
* __ppc_set_ppr_very_low() sets the Program Priority Register value to very low.
* __ppc_set_ppr_low() sets the Program Priority Register value to low.
* __ppc_set_ppr_med_low() sets the Program Priority Register value to medium low.
The privileged state medium high may also be set during certain time intervals by problem-state (unprivileged) programs, with the following
function:
* __ppc_set_ppr_med_high() sets the Program Priority to medium high.
If the program priority is medium high when the time interval expires or if an attempt is made to set the priority to medium high when it
is not allowed, the priority is set to medium.
VERSIONS
The functions __ppc_set_ppr_med(), __ppc_set_ppr_low() and __ppc_set_ppr_med_low() are provided by glibc since version 2.18. The functions
__ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() first appeared in glibc in version 2.23.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+---------------------------+---------------+---------+
|Interface | Attribute | Value |
+---------------------------+---------------+---------+
|__ppc_set_ppr_med(), | Thread safety | MT-Safe |
|__ppc_set_ppr_very_low(), | | |
|__ppc_set_ppr_low(), | | |
|__ppc_set_ppr_med_low(), | | |
|__ppc_set_ppr_med_high() | | |
+---------------------------+---------------+---------+
CONFORMING TO
These functions are nonstandard GNU extensions.
NOTES
The functions __ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() will be defined by <sys/platform/ppc.h> if _ARCH_PWR8 is defined.
Availability of these functions can be tested using #ifdef _ARCH_PWR8.
SEE ALSO
__ppc_yield(3)
Power ISA, Book II - Section 3.1 (Program Priority Registers)
GNU C Library 2017-09-15 __PPC_SET_PPR_MED(3)