Search Results

Search: Posts Made By: Mallikgm
3,028
Posted By Mallikgm
It worked perfectly. find /tmp/mallik5...
It worked perfectly.

find /tmp/mallik5 -type f ! -name "*.zip" \( -name "*.log*" -o -name "*.out*" \)
3,028
Posted By Mallikgm
Thanks a lot CarolM. It works perfectly.
Thanks a lot CarolM. It works perfectly.
3,028
Posted By Mallikgm
How to find a file which are not ends with ".zip" and which are ends with "*.log*" or "*.out*"?
I am new to bash/shell scripting.
I want to find all the files in directory and subdirectories, which are not ends with “.zip” and which are contains in the file name “*.log*” or “*.out*”.

I...
1,277
Posted By Mallikgm
got the answer find /tmp/mallik5 -type f !...
got the answer

find /tmp/mallik5 -type f ! -name '*.log'


---------- Post updated at 05:26 PM ---------- Previous update was at 05:26 PM ----------



Thanks a lot.
1,277
Posted By Mallikgm
How to find a file which are not ends with ".log"?
I am new to bash/shell scripting
I want to find all the files in directory and subdirectories, which are not ends with “.log”.
I know below command to get the files which ends with “.log”; but I...
58,301
Posted By Mallikgm
Thanks a lot for your reply. I got it. ...
Thanks a lot for your reply.
I got it.



files=($(find /tmp/mallik3/ -mtime +"$days"))
for files in ${files
}
do
echo $files
zip $files-$(date --date="-...
21,754
Posted By Mallikgm
[solved]Getting error in bash script; expr $a + 1: integer expression expected
Hi,
I am new to shell/bash script. I am trying to run below script

#!/bin/bash
a=0
b=10
if [ $a == $b ]
then
echo "a is equal to be"
else
echo "a is not equal to be"
fi...
58,301
Posted By Mallikgm
Thanks a lot for your reply. I put below...
Thanks a lot for your reply.

I put below lines (marked with blue color) in a script file "only_zip.sh" and trying to execute it, but giving the error
find /tmp/mallik3/ -type f -size +0 ! -name...
58,301
Posted By Mallikgm
How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in...
Showing results 1 to 9 of 9

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