Hello friends,
I had written a script for a work session, whenever i try to run the script i am getting an error message which is as follows
Can anyone help me out with this error message ?line 6: syntax error near unexpected token
Hello friends,
I had written a script for a work session, whenever i try to run the script i am getting an error message which is as follows
Can anyone help me out with this error message ?line 6: syntax error near unexpected token
Sure if you are getting line 6: syntax error near unexpected token, then it's an syntax error and i would be great if you can provide me your code so that i can help you out more in details.
Thank you for replying me, please look into the code and tell me where i had made very silly mistake
Code:/ bin / sh while [-n $ 1] do list = ls $ 1 for i in $ list do cat $ i>> basename $ i rm $ i done shift 1 done
In you case can you tell me how you want to make the difference between
If you want you can also replaceCode:color = blue and list = ls $ 1
byCode:while [-n $ 1] do .... $ 1 shift done
Code:for file in $ * do .... $ file done
I am also facing some issue with my bash file whenever i try to manage to isolate, i can't know from where it has come from and i had created this file from a long back here is the code for the same.
Code:/ bin / bash while [-n $ 1] do if [[-n $ 1]] then echo X $ 1X not null; else echo X $ 1X null; fi shift 1 done
There is no need to worry about because you had to replace a very small code which i had done for you and i am sure this will solve all your problem here is the code for the same
Code:/ bin / bash while [-n "$1"] do if [[-n $ 1]] then echo X $ 1X not null; else echo X $ 1X null; fi shift 1 done
Bookmarks