We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Text Processing
- Paste - 2
- Discussions
Paste - 2
Paste - 2
Sort by
recency
|
43 Discussions
|
Please Login in order to post a comment
Can anyone help, I am not geeting output
number=0 while read lines ; do echo ((number+1)) if [[ $number == 3 ]] ;then paste -s -d ';' test1.txt rm test1.txt number=0 fi
done
Just for something different:
sed 'NN; s/\n/;/g'
Try this people
awk 'ORS=NR%3?";":"\n"'
Try this -->
paste -d ';' - - -