Search Results

Search: Posts Made By: kung_fu_panda
5,385
Posted By kung_fu_panda
Try the below code #!/bin/ksh ls *.log >...
Try the below code

#!/bin/ksh
ls *.log > list_of_log_files
for file in `cat list_of_log_files`
do
echo "$file"
head -5 $file
tail -5 $file
done
echo "Files are completed"

Please update...
Showing results 1 to 1 of 1

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