Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- babian$ while read -r file fields; do
- > printf "%s" "$fields" >"$file"
- > done <<HERE
- > one_file.txt abc | def
- > two_file.txt ghi | jkl
- > three_file.txt mno | pqr
- > four_WORD.txt xyz | xyz
- > HERE
- babian$ cat *file.txt
- abc | defmno | pqrghi | jklbabian$ for f in *_file.txt; do (cat "${f}") >> full_set.txt; done
- babian$ cat full_set.txt
- abc | defmno | pqrghi | jklbabian$ sed '' *file.txt
- abc | def
- mno | pqr
- ghi | jklbabian$
Add Comment
Please, Sign In to add comment