Search Results

Search: Posts Made By: dgmm
2,203
Posted By Scott
If you have the logfile name already, then go...
If you have the logfile name already, then go back to what you had, and use $(NF-1) from the beginning:


...
logfiledate=$(echo $logfile | awk -F_ '{print $(NF-1)}')
...





cd Log_dir
...
46,785
Posted By KenJackson
I haven't used the MKS toolkit, but here's an...
I haven't used the MKS toolkit, but here's an interesting test that might shed light:
#!/bin/sh
DIR=/tmp/test
rm -rf $DIR; mkdir -p $DIR; cd $DIR || exit 1
touch "ab cd" "ef gh" "ij kl"
...
Showing results 1 to 2 of 2

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