Hi,
I like to accomplish the following sets of commands using the script -
cd /archive/users/
rm *090305*
rm *090405*
rm *090505*
....
....
rm *100205*
Basically, I like to remove all files that exists in /archive/users/.
I like to use a date range and delete all files from that date...
Tested using copy (instead move) =
find /wolf/day/month/AA/[0-9][0-9]/* -type f -mtime -7 -exec cp {} /home/jdoe/AA \;
When I run this in development, it works.
When running in Production, I does not copy files into home directory.
I am getting this message -
>>>>>> bash...
Hi Sam,
It worked! I tested it using cp (i am sure mv will work too).
But, how do I preserve date and time of the files using this command. When I run it to copy to home directory, it creates (copies) with today's date.
I like to keep the old (original) date (and time).
Please suggest...
Hi Sam,
I like to automate the process so I don't have to manually type the directory name [0-9] [0-9].
There can be other sub-directories other that 2 digit directories. So, I like to disregard any other directory that is not named as 2 digit. I only like to move files from 2 digit...
Hi,
I need to move files from one directory to another. There are sub-directories under AA directory. These subdirectories are named as 2 digit number. I need to read all these 2 digit name directories for a certain date range and move those files to /home/arc directory (parent, no...
Hi Billy,
I ran your code. Ideally, This is exactly what I want. But, I can not use this technique as I can not hard code the values of the select to block or none. I want something happen conditionally.
Please let me know if you could provide me the solution by looking at my code.
Thanks so...
Hi LV,
Here is the code...
I would like to display enduser select only if the value of report type is 2.
function dispenduser() {
if (document.chsreport.reportty.value == 2) {
document.chsreport.enduser.style.display = "block";
}
else {...
Thanks so much guys... I tried LV's code and it worked like a charm..
I have a label and the select box next to the label. When I run the code, it moves the select box show up just below the label, instead next to the label.
Any ideas??
Also, Is there a way to hide & display the label as...
Hello all,
Could you please help me out on this...
I would like to hide and display a select box depending on the value selected in another select box.
Thanks so much in advance for assistance.
NR
Hello all,
In an JavaScript function, I am getting some value into a variable called procid.
Down the page, I have this link <a href="/abc/xyz.htm">
I would like to pass the value of this variable procid as an parameter in the href...so it would look like
<a...
Hello all,
In an JavaScript function, I am getting some value into a variable called procid.
Down the page, I have this link <a href="/abc/xyz.htm">
I would like to pass the value of this variable procid as an parameter in the href...so it would look like
<a...
Hi PH,
Tried to debug the errors and got success.
Here is what I tried.
d="03/12/01"
awk -F@ '
$1~"^\[[0-9][0-9]/[0-9][0-9]/[0-9][0-9]"{f=0}
$1=="['$d'" {++f}
{if(f) print}
' inputfile > esl.out
but, like I said, this one gives all the lines from 03/12/01. I...
Thanks PH so very much.
#1 works like a charm.
I tried #2. Created a new x.sh and copy your snippet in there. Ran it from command line using . x.sh
got following errors:
awk: cmd. line:4: {if(f){print)}
awk: cmd. line:4: ^ parse error
awk: cmd. line:5: (END OF FILE)
awk: cmd...
Hello guys,
I am running into this problem and need your help to resolve the issue.
Am using Apache Web Server. On my website, I have a login that takes you into the website. So, you access those pages (after login page) after you enter username and password and get into the site. Some people...
Hello guys,
New to unix scripting here.
Question 1:
I have this text (log) file that has lines that contains ** (two asterisk) in few lines. I would like to read the file and spit out only those lines that contains ** to a file with the line break.
Question 2:
Would like to do the same...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.