Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #pipe #list #rm #ubuntu
ADD COMMENT
Topic
Name
2+3 =