riccardinofuffolo

Sistemi Operativi - 07/02/2003 - Es. 6

Aug 16th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2. filename=$1
  3. rm -f output.txt
  4. while read linea
  5. do
  6.     for (( i=0; i<linea; i++ ))
  7.     do
  8.         stringa="$stringa*"
  9.     done
  10.     echo "$stringa" >> output.txt
  11.     stringa=""
  12. done < $1
Advertisement
Add Comment
Please, Sign In to add comment