File Content Extract

By simanta

If you want to extract content from a large file then use the following command from shell

$ sed -n ‘/start string/’,'/end string/p’ database.sql > usertable.sql

The above command will extract the inner content from the SQL file between ’start string’ and ‘end string’.

Tags:

Leave a Reply