Quantcast
Channel: sed - Confused what each field does - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by cas for sed - Confused what each field does

The sed script prints the first line of input and then prints a line of * characters of exactly the same width as the first line. 1{p;s/./*/g} 1 is an address matching the first line of input only....

View Article


Answer by Wildcard for sed - Confused what each field does

That's a reasonably clever bit of code. Sed, as you can learn in a good tutorial, works on addresses and commands. If the address is omitted the command runs on every line, such as the commonly seen...

View Article


sed - Confused what each field does

I am really new in UNIX (bash) and been trying to play around with the language. I am currently trying to create a table with a fixed header from a .txt file. So I came across a code which is like...

View Article
Browsing latest articles
Browse All 3 View Live


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