Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while read pointer; do
- filename=$(echo $pointer | cut -d ' ' -f 1)
- if grep $filename list_file > /dev/null; then
- content=$(echo $pointer | cut -d ' ' -f 2)
- echo $content >> output/"$filename".txt
- fi
- done < data_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement