-1
read start _ < <(ls -1l | wc -l); echo $start

In particular:

  • the underscore after read command
  • the second minus (<)
  • how does the "echo $var1" take the value of previous command

The original code:

read start _ < <(du -bcm kali-linux-2016.2-amd64.iso | tail -1); echo $start

I have just simplify the code because i'm interested in the syntax

M C
  • 3
  • 2

1 Answers1

1

The following should help about the "_": https://unix.stackexchange.com/questions/280453/understand-the-meaning-of

This will about the "<<": https://askubuntu.com/questions/678915/whats-the-difference-between-and-in-bash

please do more research before dumping it on SO to do your work.

and echo generally just repeats what it's told ('echoes' it). "$" is a signifier of variables in shell script, so $var1 is a variable named var1. In order to access any variable, you must prefix it with a '$'

jsarbour
  • 928
  • 1
  • 8
  • 20
  • i still don't understand the syntax code – M C May 29 '19 at 20:02
  • What do you not understand? Please ask direct questions, and don't just proclaim that you do not understand. Before you ask SO, please ask those questions of google. – jsarbour Jun 03 '19 at 13:00