Search Results

Search: Posts Made By: sethmj
1,134
Posted By Scrutinizer
It was not meant as a solution, but to show you...
It was not meant as a solution, but to show you what would happen...

It would only work with single brackets, and only if there are zero or one files. With two or more files the test will fail....
10,791
Posted By neutronscott
the shell will glob the files and iterate over...
the shell will glob the files and iterate over each. the -nt is test switch for newer than. parsing ls can be problematic for files with special characters in them.
10,791
Posted By neutronscott
What shell are you using? I'm only famaliar with...
What shell are you using? I'm only famaliar with bash, but I think you're using ksh. Seems the expansions are done in different order.

bash:

[mute@geek ~/temp/sethmj]$ shopt -s extglob...
Showing results 1 to 3 of 3

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