↧
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 ArticleAnswer 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 Articlesed - 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