Guest User

Untitled

a guest
Apr 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. out put is coming as blank
  2.  
  3. input:$A_Name="ARAY"`enter code here`
  4.  
  5. $HOME/test:test_job~Y~
  6.  
  7. command:eval `grep ^job_name~ $HOME/test|nawk ' BEGIN { FS = "~" }
  8. {
  9. count = 1
  10. while (NF > count) {
  11. printf("export $A_Name[%d]="%s";", count, $count)
  12. count++
  13. } }
  14. END {count++} '` TEST=`set|grep ^"${L_ARRAY_NAME}[1]="|cut -d= -f2`
  15.  
  16. output: coming as TEST= expected output output TEST=test_job
Add Comment
Please, Sign In to add comment