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...
...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, THanks again for all help.
Nick
find /home/AA/[0-9][0-9]/* -type f -mtime -60 -exec cp{} /home/arc \;
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...
...sort of error handling you would when writing such shell scripts, please let me know.
========================================
cd /home/AA/10
mv *080706* /home/arc
mv *080806* /home/arc
cd /home/AA/12
mv *080706* /home/arc
mv *080806* /home/arc
cd /home/AA/45
mv *080706*...
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...
...{++f}
{if(f) print}
' inputfile > esl.out
but, like I said, this one gives all the lines from 03/12/01. I would like to get the ones that has ** in it.
Also, in another script, how could I pass a date range to extract data. like from 03/12/01 to 03/12/02 or even 03/12/01 to 03/12/01.
I...
...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. line:5: parse error
Does this looking for ** as well
Please help.
Thanks NR
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.