Hello all,
I have one problem. I am designing a script. Which will look for a certain pattern for file name. If pattern matches, then it will pick the file. but I am unable to give proper pattern.
e.g.
So whenever, any file which will match the above pattern will be get picked.
like
This one I have copied from one reference script. Can someone please let me know how to design the patterns? Or what is the basic thumb rules while creating such patterns. Means when to take which pattern.
I am really confused in
or
or
. Please help me to understand such syntaxes or patterns..
:) I want to rename a file by giving the actual date as a file name.
Is there a command for this?
For example file is this: a.txt
I want to copy it with a command like this: a20050510.txt (3 Replies)
I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc
Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008
Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
hi
i need to check for the value of one particular field : in the output file. the file may contain many such records as below
how to ????
*** Throttled with base name + key params!
:
: -518594328
: les.alarm.LBS12005
: les.alarm.LBS12005
: les
: lessrv1
: les
: 2328
: 0... (7 Replies)
Hi all,
I have a shell script that i started editing, only in the midst of which i tried to save the changes i found that the file wasnt been provided with write/execute permissions.
I later have redone the changes and saved the file-
Just curious to know if there was any command wherein... (5 Replies)
I want to give tester only the account tester to view the file /var/mail/root nobody else but him and of course the owner root w/o changing the permisions of /var/mail/root -rw-------.
$ cat /var/mail/root
cat: /var/mail/root: Permission denied (3 Replies)
Hi,
How to give file name for the zip file while compressing in logrotate...
Should we need to give it in the logrotate.conf file or in the spec file...? (2 Replies)
Want to write a function that prints an error when passed a list of file names. If the file list is empty, print error "no file found", if there are more than one file, print "error more than one file found" (22 Replies)
Hello everyone,
I think this would be easy for you experts.
Refering the suggestion that Scrutinizer gave me in this thread https://www.unix.com/302612499-post13.html
I have the script in this form
awk '{$1=$1}1' "$1" | awk ' ...'
Where "$1" takes the value of "inputfile" then I can... (1 Reply)
HI,
I have one file which is as below
cat /var/tmp/test1 | awk '{ print $3}'|grep -v affected
Data
----------
200.4
. The above 200 value is changable by the database script.
Now I need a script that checks the value 200.4 and the script shoud give out put if value is more than 225 (2 Replies)
Hi,
I am new in perl.
I am running a perl installation script, its asking for paths and so many inputs.
Can we provide that info by any file.
so i can avoid the interactive installation. (2 Replies)