Example 1: Display specific lines (based on line number) of a file using sed command
View only the specific lines mentioned by line numbers.
Syntax:
$ sed -n -e Xp -e Yp FILENAME
| /* global window */ | |
| function StageResizer (stageElement, options) { | |
| options = options || {}; | |
| this._element = stageElement; | |
| this._stageWidth = options.stageWidth || stageElement.offsetWidth || 1; | |
| this._stageHeight = options.stageWidth || stageElement.offsetWidth || 1; | |
| this._snapToEdge = options.snapToEdge || true; |
| document.createElement = function ( | |
| createElement, // the native one | |
| createResponse // the function "in charge" | |
| ) { | |
| return function (nodeName) { | |
| var result, src; | |
| // if we are creating a script | |
| if (/^script$/i.test(nodeName)) { | |
| // result will be a place holder | |
| result = createElement.call( |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Open App</title> | |
| <!-- | |
| URL Params: | |
| customSchemeURL: Your custom scheme app |
<system_context> You are an expert CLAUDE.md editor. IMPORTANT: If you make any changes that makes any CLAUDE.md file out of date, please update the CLAUDE.md file accordingly. </system_context>
<critical_notes>
Code with elegance - Write clean, maintainable, and elegant code that follows established patterns.
Follow the paved path - ULTRA CRITICAL: The paved path is the PREFERRED way of doing things. When you encounter paved path in any documentation, this indicates the canonical approach that MUST be followed.
| # Claude Code CLI Environment Variables | |
| # This file lists all environment variables used in cli.js with explanations | |
| process.env.__CFB - Internal Node.js buffer flag | |
| process.env.__MINIMATCH_TESTING_PLATFORM__ - Testing flag for minimatch library platform detection | |
| process.env.ALACRITTY_LOG - Alacritty terminal emulator log level configuration | |
| process.env.ALIYUN_REGION_ID - Alibaba Cloud region identifier for Chinese cloud services | |
| process.env.ANTHROPIC_API_KEY - Primary API key for authenticating with Anthropic's Claude API | |
| process.env.ANTHROPIC_AUTH_TOKEN - Alternative authentication token for Anthropic services | |
| process.env.ANTHROPIC_BASE_URL - Custom base URL for Anthropic API endpoints |