Tags » Xargs

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

Linux

Cara cepat mencari dan menghapus file di Linux

Menyambung tulisan sebelumnya. Ada lagi yang saya suka dari command line di linux, yaitu kemudahan dalam mencari file tertentu secara cepat. Perintah ini bisa digabung dengan perintah lain untuk menghapus semua file tadi sekaligus. 312 more words

Linux

Delete lines from multiple files (recursively) in Linux

We had a requirement to delete a line which matches a particular pattern from multiple ksh files. These lines of code was used to log execution status and we no longer needed it after an architecture change. 79 more words