Answers for "pipe list to rm ubuntu"

0

pipe list to rm ubuntu

#this removes first 10 files in a folder ls -U | head -10 will output a list of files
#then you pips those to  xargs rm which removes them
ls -U | head -10  | xargs rm
Posted by: Guest on February-03-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language