Search Results

Search: Posts Made By: buechler66
1,756
Posted By Makarand Dodmis
if first option is working ; second should...
if first option is working ; second should work...
second option contains two commands...
have you ran in the same sequence var=`pwd`
followed by find $var -type f -name "*.log" -mtime +1825
...
1,756
Posted By Makarand Dodmis
try find . -type f -name "*.log" -mtime...
try

find . -type f -name "*.log" -mtime +1825

Considering 365 day a year; i have used 1825 days for 5 years

for full path


var=`pwd`
find $var -type f -name "*.log" -mtime +1825
3,465
Posted By bmk
Try... ...
Try...
transmission_file_name_only="test_"$month$DD$YEAR"_partial.dat";
echo $transmission_file_name_only;
3,465
Posted By elixir_sinari
transmission_file_name_only=test_$month$DD${YEAR}_...
transmission_file_name_only=test_$month$DD${YEAR}_partial.dat
3,791
Posted By bartus11
cat wscreening_test_h_po.dat...
cat wscreening_test_h_po.dat wscreening_test_b_po.dat wscreening_test_h_notpo.dat wscreening_test_b_notpo.dat > wscreening_test.dat
5,033
Posted By itkamaraj
if you are using gnu date, then try the below ...
if you are using gnu date, then try the below


$ date +%Y%m%d%H%M
201106282047

$ date -d "1 year ago" +%Y%m%d%H%M
201006282047
5,033
Posted By jayan_jay
date +"expr "%Y%m%d%H%M" - 100000000" |...
date +"expr "%Y%m%d%H%M" - 100000000" | sh
7,240
Posted By Franklin52
Have a read of your man page of test.
Have a read of your man page of test.
7,240
Posted By itkamaraj
https://www.unix.com/unix-dummies-questions-answers...
https://www.unix.com/unix-dummies-questions-answers/5361-how-check-if-file-exist-not.html
5,222
Posted By vgersh99
#!/bin/sh if [ `ls -ltr dropez* | grep -c...
#!/bin/sh

if [ `ls -ltr dropez* | grep -c dropez` -eq 8 ]; then
do stuff
else
do other stuff
fi
4,400
Posted By Corona688
Yes, it means you don't have GNU grep, that's...
Yes, it means you don't have GNU grep, that's usually found in Linux, though occasionally installed elsewhere as a third-party app for its convenient options. Here's a brute-force non-GNU solution....
2,310
Posted By ctsgnb
yes separated by coma i think (just give it a...
yes separated by coma i think (just give it a test and let me know)
echo "This is a test mail message" | mailx -s "Test" steve@me.com,chuck.norris@youregonnadie.com,foo@bar.com,tux@greenland.org:D
2,525
Posted By verdepollo
Using GNU grep: grep -Eq "ERROR|WARNING"...
Using GNU grep:

grep -Eq "ERROR|WARNING" myfile.txt && echo "found" || echo "not found"
2,525
Posted By Scott
Something like: if egrep -q "ERROR|WARNING"...
Something like:

if egrep -q "ERROR|WARNING" myfile.txt; then
echo FOUND
else
echo NOT FOUND
fi
2,310
Posted By ctsgnb
echo "This is a test mail message" | mailx -s...
echo "This is a test mail message" | mailx -s "Test" steve@me.com
1,954
Posted By DGPickett
I tend to avoid find -exec, as it has no economy...
I tend to avoid find -exec, as it has no economy of scale. Can one run of tar take in a list of files to revise? Yes! It turns out tar u can even decide what to tar for you, leaving old stuff...
Showing results 1 to 16 of 16

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