Wuhai’s Weblog

May 27, 2010

xargs command line

Filed under: Bash — wuhai @ 1:32 am

tail -18 /etc/passwd | awk -F: ‘{print $1}’ -i{} chown {}:{} {}

In RHEL4, -I parameter is not working, even though it shows up in the xargs man page, I had to use -i. By default, {} will be used, so no need to put it there, but it won’t hurt ..

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.