Search Results

Search: Posts Made By: Froob
13,730
Posted By Froob
Mv : cannot stat :no such file or directory
this is my script

x=1
o=0
while [ $o -eq 0 ]
do
fi [[ -e /var/log/vieux-logs/mrnet.log.$x.gz ]];then (this check is a certain extension with a number exist)
...
1,483
Posted By Froob
Counter
if [ $(stat --printf="%s" /var/log/mrnet.log ) -gt 5000 ] ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log
mv /var/log/mrnet.log.gz /var/log/mrnet.log.1.gz
if [[...
3
1,500
Posted By Froob
Gzip
if [ $(stat --printf="%s" /var/log/mrnet.log ) -gt 5000 ] ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log /var/log/mrnet.log.1.gz

fi
i'm looking if mrnet.log is...
1,829
Posted By Froob
i want to compress a specific file zip...
i want to compress a specific file
zip /var/log/mrnet.log (into mrnet.log.1.gz)
is it possible
1,829
Posted By Froob
the zip command but i dont know how to use it
the zip command but i dont know how to use it
1,829
Posted By Froob
Zip a file with path
zip /var/log/mylog.log mylog.1.log but its not working
2,185
Posted By Froob
I need to zip with a path how do i do that. zip...
I need to zip with a path how do i do that.
zip /var/log/mylogfile.log /var/log/mrnet.1.log
2,185
Posted By Froob
bipinajith always there to help me your the best...
bipinajith always there to help me your the best :D
2,185
Posted By Froob
what does -exec do ?
what does -exec do ?
2,185
Posted By Froob
Check a file size
I'm doing a script thats check if mylogfile.log is bigger then 5000 but i dont know how to write it.
thanks in avance.
2,526
Posted By Froob
Thanks guy your helping me a lot i'm new at this,...
Thanks guy your helping me a lot i'm new at this, so ya thanks
2,526
Posted By Froob
what does tar do?
what does tar do?
2,526
Posted By Froob
Compressing files
I need help to do a script that will compress a file that's bigger than 5000 octets and won't overwrite the previous compress file.

lets say I have mylogfile.log and I would compress it I would...
1,445
Posted By Froob
if i want to move the first .gz file without...
if i want to move the first .gz file without knowing what its is
1,445
Posted By Froob
well i'm stuck at moving files one by one i just...
well i'm stuck at moving files one by one i just dont know how to do it.
what i think:
for i in */.gz
do
mv(first (i) files with .gz in old-logs)
done
1,445
Posted By Froob
Moving files extension one by one
Hi, I'm trying to do a script that move .Gz extension (one by one) in a new repertory called old-logs and then copy what's inside old-logs to a new.log but adding a date like this (something. gz:...
976
Posted By Froob
Thanks a lot Scrutinizer :)
Thanks a lot Scrutinizer :)
976
Posted By Froob
Need help with if an extension exists in a certain repertory
Hi, I was wondering if you can help me with verifying if certain extension exists in /var/log with an if statement. Basically I'm trying to see if there is a .Gz extension in the repertory /var/log....
Showing results 1 to 18 of 18

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