lamiastella

bash/xargs error

May 21st, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1.   1 #!/bin/bash
  2.   2 xargsout=$( echo "york.txt" | xargs -t wc )
  3.   3 echo $xargsout
  4.   4 xargsmulti=$( echo "york.txt employee" | xargs -t -n1 wc)
  5.   5 echo $xargsmulti
  6.   6
  7.   7 $(echo  "1 2 3 4 5 6" | xargs -t -n3)
  8.  
  9. ----------
  10.  
  11. wc york.txt
  12. 8 56 264 york.txt
  13. wc york.txt
  14. wc employee
  15. 8 56 264 york.txt 5 25 215 employee
  16. /bin/echo 1 2 3
  17. /bin/echo 4 5 6
  18. ./randomexamples.sh: line 7: 1: command not found
Advertisement
Add Comment
Please, Sign In to add comment