Tags » Xargs

XARGS Examples

The xargs command (by default) expects the input from stdin, and executes /bin/echo command over the input. The following is what happens when you execute… 162 more words


Ubuntu: convert an MKV to AVI

Meisha, just like me, is a fan of Tom and Jerry. I have a good collection of Tom and Jerry videos. The only problem was all those videos are in mkv format and she had to open her laptop to watch those videos every time. 87 more words


Why `xargs head` print filename?

Given two files,
a.txt content is: A1, b.txt content is: B1

While execute printf "a.txt\nb.txt" | xargs head -1,

I hope it output… 82 more words


find command examples

I needed to clean up after running tests

Using find

$ tree
├── bin
│   └── hello
├── hello
│   ├── hello.py
│   └── __init__.py
├── requirements.txt
├── setup.py
└── tests
    ├── __init__.py
    └── test_hello.py

3 directories, 7 files
… 248 more words

xargs - possible uses

Xargs is one of those commands I have never used. Recently I was looking into how I can use them in the scripts I use on a daily basis. 211 more words

How To

Extract multiple tarballs

ls *.tar.gz | xargs -IH tar xvf H
ls *.tar.gz | xargs -n 1 tar xvf