Advertisement
metalni

some bash shit

May 24th, 2021
1,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. ---Prva---
  2. #!/bin/bash
  3.  
  4. find $HOME -mtime -1 > modified
  5.  
  6. ---Vtora---
  7.  
  8. #!/bin/bash
  9.  
  10. #mv $1/[a-z]*.txt $2/[a-z]*.txt.moved_txt
  11. files=`find $1/[a-z]*.txt`
  12.  
  13. for file in $files
  14. do
  15.         mv $file $2/$file.moved_txt
  16. done
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement