Search Results

Search: Posts Made By: jreid
4,978
Posted By jreid
:-) Thanks! I also added the echo "$files" to...
:-)
Thanks! I also added the echo "$files" to capture the output in a flat file. Very much appreciate it.
4,978
Posted By jreid
ls -l on a directory and grep for a variable
I want to find all entries in a directory for a given date, and write those entries to a file.
#!/bin/ksh
d=`date '+ %b %e'` # -- this works e.g. Aug 1
files=`/usr/bin/ls -l|grep '$d' ` # -- the...
Showing results 1 to 2 of 2

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