Search Results

Search: Posts Made By: krish2014
1,180
Posted By krish2014
Hello RavinderSingh13, I tried to execute...
Hello RavinderSingh13,

I tried to execute above code. But i did not receive FileDate.
Here is the sample output I got


DATE MOVED FileDate Count Size
Jan15 106 ...
1,180
Posted By krish2014
File Count Based on FileDate using Shell Script
I have file listed in my directory in following format


-rwxrwxr-x+ 1 test test 4.9M Oct 3 16:06 test20141002150108.txt
-rwxrwxr-x+ 1 test test 4.9M Oct 4 16:06...
1,013
Posted By krish2014
You can get some idea using following url ...
You can get some idea using following url

https://www.unix.com/shell-programming-and-scripting/253499-script-determine-date-totalfile-total-size-file-based-date.html
6,445
Posted By krish2014
Thanks Don!!! Tested and getting expected...
Thanks Don!!!

Tested and getting expected result


DATE TOTALFILE TOTALSIZE
Nov26 2 17506702
Nov27 26 2429166955
Dec1 1 133
6,445
Posted By krish2014
Yes you are correct Panyam. i am doing ls -lrth...
Yes you are correct Panyam. i am doing ls -lrth . In my script you can see that.
6,445
Posted By krish2014
Script to determine Date,TotalFile,total size of file based on date
I have file listed like below

-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz...
1,174
Posted By krish2014
Thanks Don Cragun for your reply.. Surly I...
Thanks Don Cragun for your reply..

Surly I will do that and monitor. Any issue i face let you know...
1,174
Posted By krish2014
Already i am trying to achieve this by below...
Already i am trying to achieve this by below script

# Go to the directory from where want to copy files

cd /mydir
find . -type f -mtime 1 -exec cp {} /destdir\;
find . -type f -mtime 1 -exec...
1,174
Posted By krish2014
File Copy based on file receive date
I have bunch of files in my source folder like below and every day based on date I am receiving file ex: Nov 28,Nov 29,Nov 30 ...

-rw-rw-r--+ 1 root root 20 Nov 27 06:00 aaaa27.txt
-rw-rw-r--+ 1...
1,104
Posted By krish2014
Hi All, Thanks for your reply. can you please...
Hi All,
Thanks for your reply.
can you please help me to print particular column name as well.

@Ahamed101
can you please explain your code.
1,104
Posted By krish2014
Verify the null filed of the text file
Here is my sample data
Test.txt


column 1|columne 2|columne 3|columne 4
test|test||test
test|test|test|
test||test|test
test|test|test|test
|test|test|test


In that example having NULL...
9,849
Posted By krish2014
Thanks RavinderSingh13 and anbu23
Thanks RavinderSingh13 and anbu23
9,849
Posted By krish2014
Validate date file format using awk
Here is my sample data
Test.txt

column 1|columne 2|start Date|end Date
test|test|03/24/2014|03/24/2014
test|test|03/24-2014|03/24/2014
test|test|03/24/2014|03/24/2014...
Showing results 1 to 13 of 13

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