Skip to main content
Active reading [<http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29> <https://www.youtube.com/watch?v=1Dax90QyXgI&t=19m05s> ].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Here are two more ways:

Please keep in mind that space is very important in Bash. So, if you want your command to run, use as is without introducing any more spaces.

  1. The following assigns harshilharshil to LL and then prints it

     L=$"harshil" echo "$L" 
  2. The following assigns the output of the command tr to L2. tr is being operated on another variable, L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways:

Please keep in mind that space is very important in . So, if you want your command to run, use as is without introducing any more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of the command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways:

Please keep in mind that space is very important in Bash. So, if you want your command to run, use as is without introducing any more spaces.

  1. The following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. The following assigns the output of the command tr to L2. tr is being operated on another variable, L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 
Corrected Grammar
Source Link
François Maturel
  • 6.2k
  • 6
  • 47
  • 51

Here are two more ways: Please

Please keep in mind that space is very important in bash so. So, if you want your command to run, use as is without introducing any more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of the command trtr to L2. trtr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways: Please keep in mind that space is very important in bash so if you want your command to run use as is without introducing any more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of the command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways:

Please keep in mind that space is very important in . So, if you want your command to run, use as is without introducing any more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of the command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways: Please keep in mind that space is very important in bash so if you want your command to run use as is without introducing anymoreany more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of athe command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways: Please keep in mind space is very important in bash so if you want your command to run use as is without introducing anymore spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns output of a command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 

Here are two more ways: Please keep in mind that space is very important in bash so if you want your command to run use as is without introducing any more spaces.

  1. following assigns harshil to L and then prints it

     L=$"harshil" echo "$L" 
  2. following assigns the output of the command tr to L2. tr is being operated on another variable L1.

     L2=$(echo "$L1" | tr [:upper:] [:lower:]) 
Source Link
Harshil
  • 1.3k
  • 17
  • 22
Loading