---
title: "xargs usage with multi arguments"
author: "standalone"
date: "2011-11-30T12:24:44Z"
tags: []
categories: ["编程语言"]
slug: "xargs-usage-with-multi-arguments"
draft: false
lastmod: "2011-11-30T12:24:44Z"
id: 1285508
url: "https://standalone.iteye.com/blog/1285508"
---

[http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html](http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html)

 

I saw this article when I was wondering how to move a lot of files listed in a file to another place. I found xargs is very useful here.

 

cat filename list | xargs -I % mv % newfolder

 

Note that in the article above it mentions using -J, I tried on my machine it prompts I should use -I rather than -J.