Search Results

Search: Posts Made By: Rajesh123
991
Posted By Rajesh123
Mload-UTY2408 occurred while trying to record control output infomation - terminating
Hi
Mload script has been running properly. Suddenly started giving error since yesterday.
UTY2408 Error occurred while trying to record control output intonation - terminating.
The table is...
2,058
Posted By Rajesh123
30 days old files with full path
I am getting below error on sunOS

find: bad option -printf
find: [-H | -L] path list predicate list.

YouTube Video Tutorial: How to Use Code Tags and Format Posts @UNIX.com
2,058
Posted By Rajesh123
Using this command. find /app/testing/ -mtime...
Using this command.
find /app/testing/ -mtime +30 -type f > oldfiles.txt
2,058
Posted By Rajesh123
30 days old files with full path
my requirement is 30 days old files along with size and pull path of the file (file should be listed in descending by size).

output:

12345 /app/testing/file1
12341 /app/testing/file2
7,160
Posted By Rajesh123
May be there are multiple files with different...
May be there are multiple files with different names like STG_123,abc_345,abc_123,STG_345 I need to look only for abc* if at least one abc file exists enter in to the loop and delete the abc files...
1,825
Posted By Rajesh123
Error with for loop
There are two files abc_123.dat and abc_345.dat if at least one file exists then enter into the loop and remove file and exit.
In first iteration, deleting files successfully
but "else" statement...
7,160
Posted By Rajesh123
Check the at least one file exists in the directory
Below code is doing file validation properly but returning error after completion second loop. error "file does not existing". my requirement is to check only once if the file exists then it should...
7,160
Posted By Rajesh123
Thanks. I have doubt When I use below...
Thanks.
I have doubt

When I use below command it deletes the file even there is no file exist.

INPUTDIR=/path/with/files
If [[ 'ls $INPUTDIR/abc*.dat | wc -l > 0' ]]
then
rm fiile1
else ...
7,160
Posted By Rajesh123
If at least one file does not exists then script...
If at least one file does not exists then script should throw error and execution should stop.

array=($inputdir/abc*.dat)
If [ [ -f ${array[0] ] ]
then
EXITCD=44
else
echo " file does not...
7,160
Posted By Rajesh123
Check that at least one file exists in the directory.
There are some files with suffix dates like abc_20032019.dat abc_17032019.dat
If at least one file exists then perform some operation else exit from execution.
Korn shell...
Showing results 1 to 10 of 10

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