Skip to main content
format
Source Link
fedorqui
  • 285.3k
  • 105
  • 579
  • 617

ls -t -1 | sed '1q'

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'

ls -t -1 | grep foo | sed '1q'

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'

ls -t -1 | sed '1q'ls -t -1 | sed '1q'

Will show the last modified item in the folder. PairPair with grepgrep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'ls -t -1 | grep foo | sed '1q'

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'

Source Link

ls -t -1 | sed '1q'

Will show the last modified item in the folder. Pair with grep to find latest entries with keywords

ls -t -1 | grep foo | sed '1q'