Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Bash script coding

tr -s '[[:blank:]]' '[\n*]' < file |
  while IFS= read -r word; do
    : echo "$word" here
  done

1. what does ##tr -s '[[:blank:]]' '[\n*]'##  do ? What does ##[\n*]## do ?
2.  In ##IFS= read -r word ##, what does IFS do ? Does the ouput from first line feed into the 2nd line and put into variable word ?
3. In tr -cs '[A-Za-z_]' '[\n*]' < file , what does ##  tr -cs '[A-Za-z_]' '[\n*] ## do ?

Tks
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK
AXISHK

ASKER

Tks
Is this a home work / school test? Looks like it.