Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mapfile -t array < "file.txt"
- previous_PPID=0
- for i in "${array[@]}"
- do
- previous_PPID=$i | sed 's/[[:alpha:]=:]//g' | tr -d '_' | awk '{ print $2 }'
- echo $previous_PPID
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement