Give me the most current file adminJuly 15, 2011Uncategorized 0 I needed a quick way to maintain a current symlink to the most recent file by time stamp. Here’s one way to do it: ls -t1 *.jpg | head -1 | xargs -i ln -sf {} current.jpg Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website This site uses Akismet to reduce spam. Learn how your comment data is processed. Previous Post #!/bin/bash Next Post Auto lock your Mac when you walk away