Linux interview questions and Snippets for daily use on Linux :P
Tuesday, December 31, 2013
To copy recent files from a folder to somewhere else:
cp $(ls -lrt | tail -2 |awk '{print $9}') ../ (copying last 2 recent files smwer)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment