Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command IFS=',' read -r -a array <<< "$var" not working #54

Open
flaviohenriquew opened this issue Jun 19, 2022 · 0 comments
Open

Command IFS=',' read -r -a array <<< "$var" not working #54

flaviohenriquew opened this issue Jun 19, 2022 · 0 comments

Comments

@flaviohenriquew
Copy link

O trecho do código dá erro quando tento converter para bat, dá o seguinte erro: parse error: Error: Parse error on line 161: Unexpected 'LESS'
ou seja, linha:
IFS=',' read -r -a array <<< "$pastas_selecionadas"

   echo "Carregando arquivos da pasta.."
echo ""			
#listar_pasta=$(ls -1 | sed "s#^#${PWD}/#")
#echo "$listar_pasta"
echo ""
echo ""
echo "Escreva os nomes das pastas abaixo separando por vírgula."
read pastas_selecionadas;
IFS=',' read -r -a array <<< "$pastas_selecionadas"
arraylength=${#array[@]}
for (( i=1; i<${arraylength}+1; i++ ));
	do
		cd "${array[$i-1]}" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant