Search Results

Search: Posts Made By: jasperux
2,237
Posted By jasperux
Scott, how can I possible do that in the script....
Scott, how can I possible do that in the script. I'm just new in the scripting world.


Thanks a lot!
2,237
Posted By jasperux
I really wanted to only compress the file.text,...
I really wanted to only compress the file.text, not including the directories where it reside, that's why I thought of using /*/*/*. Is there any way where I can only compress the file.text?
...
2,237
Posted By jasperux
thanks Scott for the prompt reply. I tried the...
thanks Scott for the prompt reply. I tried the below command and it gives me what I am looking for, however, I am not that certain if it's safe in the production servers:

tar -zcvf...
2,237
Posted By jasperux
Tar a file
I need help. I need to compress, (.tar) a file named file.text and append the date on its file name, from file.text, it should now be file_120724.tar.

The problem now with my below script is that...
2,242
Posted By jasperux
Delete records in mysql database where record is less than today
Guys, I need help.


I need to create a script to delete records in mysql database where record is 2 days old.

Thanks.
3,697
Posted By jasperux
Please post what Operating System and version you...
Please post what Operating System and version you have and what Shell you use.

OS version is Red Hat 4.5-6, Bash

Is the "last modified" times stamp which you see in ls -la usable to identify...
3,697
Posted By jasperux
Delete multiple folders in a directory which are two weeks old
I need help.

I have to delete multiple directories inside a directory that are two weeks old.

Example: Today is July 09, 2012

Folder1 > folder1 (created June 4, 2012) -- should be deleted
...
2,496
Posted By jasperux
Thanks for the reply. However, I simulate the...
Thanks for the reply. However, I simulate the code in other text file and it works, but the thing is that, the files are created by user apache, different from the user where the application is...
2,496
Posted By jasperux
Change the file permission
Guys, I need help.

I need to change the .txt file permission after I have reset the file content to 0.

The code that reset the file content to 0 is as follows:
#!/bin/sh

for i in...
3,363
Posted By jasperux
Delete folder in a directory which are two months old
I need help. I have to create a script which will delete multiple directory (folders) that are two months old. Example, I have folders dated April, May, June and July. I have to delete folders April...
20,751
Posted By jasperux
Thanks a lot. It works! :b:
Thanks a lot. It works! :b:
20,751
Posted By jasperux
Read multiple text file in shell sccript
I need help. I need to read all current and incoming text file in the directory and change it's content to 0.

The following code change the content of the text file to 0, however, the code always...
5,180
Posted By jasperux
thanks a lot. It works!
thanks a lot. It works!
5,180
Posted By jasperux
Script not working in cron but working fine manually
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.

The script is as follow:
#!/bin/sh

for file in file_1.txt file_2.txt...
1,704
Posted By jasperux
Thanks jim for the response. I tried the command...
Thanks jim for the response. I tried the command you gave but it only append the 0 to the xxx. It doesn't overwrite the xxx with 0.
1,704
Posted By jasperux
Reset different and multiple .txt file content to 0
I need help. I have to create a cron job that will reset the value of different and multiple .txt file to 0.

Example:

Actual
172_21.txt = 25
192_101.txt = 10
192_168.txt = 5
10_10.txt = 3
...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy