Revision: 6568
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at September 17, 2008 13:57 by Juanje
                            
                            Updated Code
# show from line 12 to line 23 sed -n '12,23 p' archivo.txt # or just one (line 15) sed -n 15p archivo.txt
                            Revision: 6567
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at May 30, 2008 19:01 by Juanje
                            
                            Initial Code
# show from line 12 to line 23 sed -n '12,23 p' archivo.txt
Initial URL
Initial Description
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
Initial Title
Show few lines from a file with sed
Initial Tags
Bash, files
Initial Language
Bash