Quantcast
Channel: Keep all line breaks except the last one using awk - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Keep all line breaks except the last one using awk

$
0
0

How do I modify this line below to capture the content between two lines without the trailing line break?

interesting="$(awk "NR >= $first_line && NR <= $second_line" $file_path | base64 -w 0)"

I'm not sure if I should be looking to do this with awk, bash, or some other unix tool?


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>