Hi guys. i have the following script:
1 #!/bin/bash
2 linkcount=$(grep "/portal" tickets | wc -l)
3 grep "/portal" tickets > links
4 for i in $(seq 1 $linkcount); do
5 echo "BLYAT"
6 let link$i=$(sed -n "$i"p links)
7 echo $[link$i]
8 done
the problem is, that "let" can`t define the variable, as variable looks like "/portal/ticket/show/090107-01666?status=open".
as you can see script should define a number of line(1-x) variables and echo them
Could you please suggest some options?