-
Notifications
You must be signed in to change notification settings - Fork 4
Linux commands
Christine Tranchant-Dubreuil edited this page Jun 2, 2017
·
1 revision
| Authors | Christine Tranchant-Dubreuil |
|---|---|
| Research Unit | UMR DIADE |
| Institut | ![]() |
This page describes some linux commands
- Find the empty directory
[durreuic@cobalt174 output]$ find . -type d -empty
./GL/2_bwaSampe
./GL/1_bwaAln
./GG/2_bwaSampe- Check that the directory are empty with
xargs
[durreuic@cobalt174 output]$ find . -type d -empty | xargs ls
./FR/1_bwaAln:
./FR/2_bwaSampe:
./FS/1_bwaAln:Nb : xargs is a command on Unix used to execute command lines from standard input. Commands such as grep and awk can accept the standard input as a parameter, or argument by using a pipe. However, others such as cp a disregard the standard input stream and rely solely on the arguments found after the command.
The resource material is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/



