Linked Questions
                        11 questions linked to/from Differences between sed on Mac OSX and other "standard" sed?
                    
                
            
            
                430
            
            votes
        
        
            
                4
            
            answers
        
        
            
                821k
            
            views
        
        
            
            
            
        What characters do I need to escape when using sed in a sh script?
                    Take the following script:
#!/bin/sh
sed 's/(127\.0\.1\.1)\s/\1/' [some file]
If I try to run this in sh (dash here), it'll fail because of the parentheses, which need to be escaped. But I don't need ...
                
            
       
        
            
                176
            
            votes
        
        
            
                5
            
            answers
        
        
            
                71k
            
            views
        
        
            
            
        What exactly is POSIX?
                    I see POSIX mentioned often and everywhere, and I had assumed it to be the baseline UNIX standard.. until I noticed the following excerpt on a Wikipedia page: The Open Group  
  The Open Group is most ...
                
            
       
        
            
                58
            
            votes
        
        
            
                11
            
            answers
        
        
            
                162k
            
            views
        
        
            
            
            
        How can I "grep" patterns across multiple lines?
                    It seems I am misusing grep/egrep. 
I was trying to search for strings in multiple line and could not find a match while I know that what I'm looking for should match. Originally I thought that my ...
                
            
       
        
            
                37
            
            votes
        
        
            
                4
            
            answers
        
        
            
                12k
            
            views
        
        
            
            
            
        Evolution of Operating systems from Unix
                    Can you explain the evolution hierarchy of operating systems (Linux and Windows) from Unix?
                
            
       
        
            
                4
            
            votes
        
        
            
                4
            
            answers
        
        
            
                21k
            
            views
        
        
            
            
            
        sed command to replace a blank line with two lines of content
                    How do I replace the first blank line with two lines of content? I did see a question on replacing multiple blank lines with a single blank line in vim sed but don't quite see how to adapt that. So, ...
                
            
       
        
            
                4
            
            votes
        
        
            
                6
            
            answers
        
        
            
                10k
            
            views
        
        
            
            
            
        Use sed command to check if a particular line exists, if not, add it
                    I want to add more terminals to the file /etc/securetty. More specifically I would like to add pts/n, where n is in the range 0-9, if it does not exist. Is this possible through sed command? The ...
                
            
       
        
            
                3
            
            votes
        
        
            
                8
            
            answers
        
        
            
                3k
            
            views
        
        
            
            
        How to convert dashed string to spaces and caps?
                    Given the string foo-bar, what is a good way to convert it to Foo Bar?
Using Bash, OSX.
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        ERROR : invalid command code ~
                    I am actually learning about sed command tutorial , where I am running below command in order to print the line 1st,4th,7th,10th,13th ..... line from Notes.txt.
I am using MAC terminal
sed -n '1~3p' ...
                
            
       
        
            
                4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                967
            
            views
        
        
            
            
        How to use sed to replace two instances of the same digits separated by a slash with one instance of those digits?
                    I want to use sed to replace two instances of the same digits separated by a slash with one instance of those digits. My input files have lines like this:
text (1982/1982) text
text (1983/1983) text
...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                365
            
            views
        
        
            
            
        SSH Config Host Autocomplete Command not Autocompleting
                    I wrote a function to get my hosts from ssh config without getting wildcard hosts:
sshConfAutoComplete() { 
   cat ~/.ssh/config | \
   grep 'host '      | \
   sed '
     s#.*\*##g; 
     s#host ##g
 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                147
            
            views
        
        
            
            
            
        Reading specific lines from input file
                    I have  an input file with this general structure. I only want to extract the values step and weight from the hill blocks and put them into a output file using awk/sed/grep. Hill blocks are arranged ...
                
            
       
         
         
        