Complete and Practical Sed Command Cheat Sheet
Sed is a stream editor used for basic transformation and manipulation of text. It is one of the most powerful text processing tools in Unix systems.
Basic Commands
sed 's/old/new/' fileReplace the first ‘old’ with ’new’ in the file.
sed 's/old/new/g' fileReplace all ‘old’ with ’new’ in the file.
sed -n 'p' filePrint the contents of the file only.
sed 'd' fileDelete the contents of the file.
sed '2d' fileDelete the second line of the file.
sed '2,4d' fileDelete from the second line to the fourth line of the file.
sed '/pattern/d' fileDelete lines containing the pattern.
sed -i 's/old/new/g' fileReplace in file and save changes.
Step-by-Step Selection Examples
Below is a list of sequential examples showing how to use the tilde (~) operator for address stepping in Sed.
sed -n '1~2p' fileThis command is used to print every other line of the file, starting specifically from line 1 and continuing until the end.
sed -n '2~2p' fileThis command is used to print every other line of the file, starting specifically from line 2 and continuing until the end.
sed -n '3~2p' fileThis command is used to print every other line of the file, starting specifically from line 3 and continuing until the end.
sed -n '4~2p' fileThis command is used to print every other line of the file, starting specifically from line 4 and continuing until the end.
sed -n '5~2p' fileThis command is used to print every other line of the file, starting specifically from line 5 and continuing until the end.
sed -n '6~2p' fileThis command is used to print every other line of the file, starting specifically from line 6 and continuing until the end.
sed -n '7~2p' fileThis command is used to print every other line of the file, starting specifically from line 7 and continuing until the end.
sed -n '8~2p' fileThis command is used to print every other line of the file, starting specifically from line 8 and continuing until the end.
sed -n '9~2p' fileThis command is used to print every other line of the file, starting specifically from line 9 and continuing until the end.
sed -n '10~2p' fileThis command is used to print every other line of the file, starting specifically from line 10 and continuing until the end.
sed -n '11~2p' fileThis command is used to print every other line of the file, starting specifically from line 11 and continuing until the end.
sed -n '12~2p' fileThis command is used to print every other line of the file, starting specifically from line 12 and continuing until the end.
sed -n '13~2p' fileThis command is used to print every other line of the file, starting specifically from line 13 and continuing until the end.
sed -n '14~2p' fileThis command is used to print every other line of the file, starting specifically from line 14 and continuing until the end.
sed -n '15~2p' fileThis command is used to print every other line of the file, starting specifically from line 15 and continuing until the end.
sed -n '16~2p' fileThis command is used to print every other line of the file, starting specifically from line 16 and continuing until the end.
sed -n '17~2p' fileThis command is used to print every other line of the file, starting specifically from line 17 and continuing until the end.
sed -n '18~2p' fileThis command is used to print every other line of the file, starting specifically from line 18 and continuing until the end.
sed -n '19~2p' fileThis command is used to print every other line of the file, starting specifically from line 19 and continuing until the end.
sed -n '20~2p' fileThis command is used to print every other line of the file, starting specifically from line 20 and continuing until the end.
sed -n '21~2p' fileThis command is used to print every other line of the file, starting specifically from line 21 and continuing until the end.
sed -n '22~2p' fileThis command is used to print every other line of the file, starting specifically from line 22 and continuing until the end.
sed -n '23~2p' fileThis command is used to print every other line of the file, starting specifically from line 23 and continuing until the end.
sed -n '24~2p' fileThis command is used to print every other line of the file, starting specifically from line 24 and continuing until the end.
sed -n '25~2p' fileThis command is used to print every other line of the file, starting specifically from line 25 and continuing until the end.
sed -n '26~2p' fileThis command is used to print every other line of the file, starting specifically from line 26 and continuing until the end.
sed -n '27~2p' fileThis command is used to print every other line of the file, starting specifically from line 27 and continuing until the end.
sed -n '28~2p' fileThis command is used to print every other line of the file, starting specifically from line 28 and continuing until the end.
sed -n '29~2p' fileThis command is used to print every other line of the file, starting specifically from line 29 and continuing until the end.
sed -n '30~2p' fileThis command is used to print every other line of the file, starting specifically from line 30 and continuing until the end.
sed -n '31~2p' fileThis command is used to print every other line of the file, starting specifically from line 31 and continuing until the end.
sed -n '32~2p' fileThis command is used to print every other line of the file, starting specifically from line 32 and continuing until the end.
sed -n '33~2p' fileThis command is used to print every other line of the file, starting specifically from line 33 and continuing until the end.
sed -n '34~2p' fileThis command is used to print every other line of the file, starting specifically from line 34 and continuing until the end.
sed -n '35~2p' fileThis command is used to print every other line of the file, starting specifically from line 35 and continuing until the end.
sed -n '36~2p' fileThis command is used to print every other line of the file, starting specifically from line 36 and continuing until the end.
sed -n '37~2p' fileThis command is used to print every other line of the file, starting specifically from line 37 and continuing until the end.
sed -n '38~2p' fileThis command is used to print every other line of the file, starting specifically from line 38 and continuing until the end.
sed -n '39~2p' fileThis command is used to print every other line of the file, starting specifically from line 39 and continuing until the end.
sed -n '40~2p' fileThis command is used to print every other line of the file, starting specifically from line 40 and continuing until the end.
sed -n '41~2p' fileThis command is used to print every other line of the file, starting specifically from line 41 and continuing until the end.
sed -n '42~2p' fileThis command is used to print every other line of the file, starting specifically from line 42 and continuing until the end.
sed -n '43~2p' fileThis command is used to print every other line of the file, starting specifically from line 43 and continuing until the end.
sed -n '44~2p' fileThis command is used to print every other line of the file, starting specifically from line 44 and continuing until the end.
sed -n '45~2p' fileThis command is used to print every other line of the file, starting specifically from line 45 and continuing until the end.
sed -n '46~2p' fileThis command is used to print every other line of the file, starting specifically from line 46 and continuing until the end.
sed -n '47~2p' fileThis command is used to print every other line of the file, starting specifically from line 47 and continuing until the end.
sed -n '48~2p' fileThis command is used to print every other line of the file, starting specifically from line 48 and continuing until the end.
sed -n '49~2p' fileThis command is used to print every other line of the file, starting specifically from line 49 and continuing until the end.
sed -n '50~2p' fileThis command is used to print every other line of the file, starting specifically from line 50 and continuing until the end.
sed -n '51~2p' fileThis command is used to print every other line of the file, starting specifically from line 51 and continuing until the end.
sed -n '52~2p' fileThis command is used to print every other line of the file, starting specifically from line 52 and continuing until the end.
sed -n '53~2p' fileThis command is used to print every other line of the file, starting specifically from line 53 and continuing until the end.
sed -n '54~2p' fileThis command is used to print every other line of the file, starting specifically from line 54 and continuing until the end.
sed -n '55~2p' fileThis command is used to print every other line of the file, starting specifically from line 55 and continuing until the end.
sed -n '56~2p' fileThis command is used to print every other line of the file, starting specifically from line 56 and continuing until the end.
sed -n '57~2p' fileThis command is used to print every other line of the file, starting specifically from line 57 and continuing until the end.
sed -n '58~2p' fileThis command is used to print every other line of the file, starting specifically from line 58 and continuing until the end.
sed -n '59~2p' fileThis command is used to print every other line of the file, starting specifically from line 59 and continuing until the end.
sed -n '60~2p' fileThis command is used to print every other line of the file, starting specifically from line 60 and continuing until the end.
sed -n '61~2p' fileThis command is used to print every other line of the file, starting specifically from line 61 and continuing until the end.
sed -n '62~2p' fileThis command is used to print every other line of the file, starting specifically from line 62 and continuing until the end.
sed -n '63~2p' fileThis command is used to print every other line of the file, starting specifically from line 63 and continuing until the end.
sed -n '64~2p' fileThis command is used to print every other line of the file, starting specifically from line 64 and continuing until the end.
sed -n '65~2p' fileThis command is used to print every other line of the file, starting specifically from line 65 and continuing until the end.
sed -n '66~2p' fileThis command is used to print every other line of the file, starting specifically from line 66 and continuing until the end.
sed -n '67~2p' fileThis command is used to print every other line of the file, starting specifically from line 67 and continuing until the end.
sed -n '68~2p' fileThis command is used to print every other line of the file, starting specifically from line 68 and continuing until the end.
sed -n '69~2p' fileThis command is used to print every other line of the file, starting specifically from line 69 and continuing until the end.
sed -n '70~2p' fileThis command is used to print every other line of the file, starting specifically from line 70 and continuing until the end.
sed -n '71~2p' fileThis command is used to print every other line of the file, starting specifically from line 71 and continuing until the end.
sed -n '72~2p' fileThis command is used to print every other line of the file, starting specifically from line 72 and continuing until the end.
sed -n '73~2p' fileThis command is used to print every other line of the file, starting specifically from line 73 and continuing until the end.
sed -n '74~2p' fileThis command is used to print every other line of the file, starting specifically from line 74 and continuing until the end.
sed -n '75~2p' fileThis command is used to print every other line of the file, starting specifically from line 75 and continuing until the end.
sed -n '76~2p' fileThis command is used to print every other line of the file, starting specifically from line 76 and continuing until the end.
sed -n '77~2p' fileThis command is used to print every other line of the file, starting specifically from line 77 and continuing until the end.
sed -n '78~2p' fileThis command is used to print every other line of the file, starting specifically from line 78 and continuing until the end.
sed -n '79~2p' fileThis command is used to print every other line of the file, starting specifically from line 79 and continuing until the end.
sed -n '80~2p' fileThis command is used to print every other line of the file, starting specifically from line 80 and continuing until the end.
sed -n '81~2p' fileThis command is used to print every other line of the file, starting specifically from line 81 and continuing until the end.
sed -n '82~2p' fileThis command is used to print every other line of the file, starting specifically from line 82 and continuing until the end.
sed -n '83~2p' fileThis command is used to print every other line of the file, starting specifically from line 83 and continuing until the end.
sed -n '84~2p' fileThis command is used to print every other line of the file, starting specifically from line 84 and continuing until the end.
sed -n '85~2p' fileThis command is used to print every other line of the file, starting specifically from line 85 and continuing until the end.
sed -n '86~2p' fileThis command is used to print every other line of the file, starting specifically from line 86 and continuing until the end.
sed -n '87~2p' fileThis command is used to print every other line of the file, starting specifically from line 87 and continuing until the end.
sed -n '88~2p' fileThis command is used to print every other line of the file, starting specifically from line 88 and continuing until the end.
sed -n '89~2p' fileThis command is used to print every other line of the file, starting specifically from line 89 and continuing until the end.
sed -n '90~2p' fileThis command is used to print every other line of the file, starting specifically from line 90 and continuing until the end.
sed -n '91~2p' fileThis command is used to print every other line of the file, starting specifically from line 91 and continuing until the end.
sed -n '92~2p' fileThis command is used to print every other line of the file, starting specifically from line 92 and continuing until the end.
sed -n '93~2p' fileThis command is used to print every other line of the file, starting specifically from line 93 and continuing until the end.
sed -n '94~2p' fileThis command is used to print every other line of the file, starting specifically from line 94 and continuing until the end.
sed -n '95~2p' fileThis command is used to print every other line of the file, starting specifically from line 95 and continuing until the end.
sed -n '96~2p' fileThis command is used to print every other line of the file, starting specifically from line 96 and continuing until the end.
sed -n '97~2p' fileThis command is used to print every other line of the file, starting specifically from line 97 and continuing until the end.
sed -n '98~2p' fileThis command is used to print every other line of the file, starting specifically from line 98 and continuing until the end.
sed -n '99~2p' fileThis command is used to print every other line of the file, starting specifically from line 99 and continuing until the end.
sed -n '100~2p' fileThis command is used to print every other line of the file, starting specifically from line 100 and continuing until the end.
sed -n '101~2p' fileThis command is used to print every other line of the file, starting specifically from line 101 and continuing until the end.
sed -n '102~2p' fileThis command is used to print every other line of the file, starting specifically from line 102 and continuing until the end.
sed -n '103~2p' fileThis command is used to print every other line of the file, starting specifically from line 103 and continuing until the end.
sed -n '104~2p' fileThis command is used to print every other line of the file, starting specifically from line 104 and continuing until the end.
sed -n '105~2p' fileThis command is used to print every other line of the file, starting specifically from line 105 and continuing until the end.
sed -n '106~2p' fileThis command is used to print every other line of the file, starting specifically from line 106 and continuing until the end.
sed -n '107~2p' fileThis command is used to print every other line of the file, starting specifically from line 107 and continuing until the end.
sed -n '108~2p' fileThis command is used to print every other line of the file, starting specifically from line 108 and continuing until the end.
sed -n '109~2p' fileThis command is used to print every other line of the file, starting specifically from line 109 and continuing until the end.
sed -n '110~2p' fileThis command is used to print every other line of the file, starting specifically from line 110 and continuing until the end.
sed -n '111~2p' fileThis command is used to print every other line of the file, starting specifically from line 111 and continuing until the end.
sed -n '112~2p' fileThis command is used to print every other line of the file, starting specifically from line 112 and continuing until the end.
sed -n '113~2p' fileThis command is used to print every other line of the file, starting specifically from line 113 and continuing until the end.
sed -n '114~2p' fileThis command is used to print every other line of the file, starting specifically from line 114 and continuing until the end.
sed -n '115~2p' fileThis command is used to print every other line of the file, starting specifically from line 115 and continuing until the end.
sed -n '116~2p' fileThis command is used to print every other line of the file, starting specifically from line 116 and continuing until the end.
sed -n '117~2p' fileThis command is used to print every other line of the file, starting specifically from line 117 and continuing until the end.
sed -n '118~2p' fileThis command is used to print every other line of the file, starting specifically from line 118 and continuing until the end.
sed -n '119~2p' fileThis command is used to print every other line of the file, starting specifically from line 119 and continuing until the end.
sed -n '120~2p' fileThis command is used to print every other line of the file, starting specifically from line 120 and continuing until the end.
sed -n '121~2p' fileThis command is used to print every other line of the file, starting specifically from line 121 and continuing until the end.
sed -n '122~2p' fileThis command is used to print every other line of the file, starting specifically from line 122 and continuing until the end.
sed -n '123~2p' fileThis command is used to print every other line of the file, starting specifically from line 123 and continuing until the end.
sed -n '124~2p' fileThis command is used to print every other line of the file, starting specifically from line 124 and continuing until the end.
sed -n '125~2p' fileThis command is used to print every other line of the file, starting specifically from line 125 and continuing until the end.
sed -n '126~2p' fileThis command is used to print every other line of the file, starting specifically from line 126 and continuing until the end.
sed -n '127~2p' fileThis command is used to print every other line of the file, starting specifically from line 127 and continuing until the end.
sed -n '128~2p' fileThis command is used to print every other line of the file, starting specifically from line 128 and continuing until the end.
sed -n '129~2p' fileThis command is used to print every other line of the file, starting specifically from line 129 and continuing until the end.
sed -n '130~2p' fileThis command is used to print every other line of the file, starting specifically from line 130 and continuing until the end.
sed -n '131~2p' fileThis command is used to print every other line of the file, starting specifically from line 131 and continuing until the end.
sed -n '132~2p' fileThis command is used to print every other line of the file, starting specifically from line 132 and continuing until the end.
sed -n '133~2p' fileThis command is used to print every other line of the file, starting specifically from line 133 and continuing until the end.
sed -n '134~2p' fileThis command is used to print every other line of the file, starting specifically from line 134 and continuing until the end.
sed -n '135~2p' fileThis command is used to print every other line of the file, starting specifically from line 135 and continuing until the end.
sed -n '136~2p' fileThis command is used to print every other line of the file, starting specifically from line 136 and continuing until the end.
sed -n '137~2p' fileThis command is used to print every other line of the file, starting specifically from line 137 and continuing until the end.
sed -n '138~2p' fileThis command is used to print every other line of the file, starting specifically from line 138 and continuing until the end.
sed -n '139~2p' fileThis command is used to print every other line of the file, starting specifically from line 139 and continuing until the end.
sed -n '140~2p' fileThis command is used to print every other line of the file, starting specifically from line 140 and continuing until the end.
sed -n '141~2p' fileThis command is used to print every other line of the file, starting specifically from line 141 and continuing until the end.
sed -n '142~2p' fileThis command is used to print every other line of the file, starting specifically from line 142 and continuing until the end.
sed -n '143~2p' fileThis command is used to print every other line of the file, starting specifically from line 143 and continuing until the end.
sed -n '144~2p' fileThis command is used to print every other line of the file, starting specifically from line 144 and continuing until the end.
sed -n '145~2p' fileThis command is used to print every other line of the file, starting specifically from line 145 and continuing until the end.
sed -n '146~2p' fileThis command is used to print every other line of the file, starting specifically from line 146 and continuing until the end.
sed -n '147~2p' fileThis command is used to print every other line of the file, starting specifically from line 147 and continuing until the end.
sed -n '148~2p' fileThis command is used to print every other line of the file, starting specifically from line 148 and continuing until the end.
sed -n '149~2p' fileThis command is used to print every other line of the file, starting specifically from line 149 and continuing until the end.
sed -n '150~2p' fileThis command is used to print every other line of the file, starting specifically from line 150 and continuing until the end.
sed -n '151~2p' fileThis command is used to print every other line of the file, starting specifically from line 151 and continuing until the end.
sed -n '152~2p' fileThis command is used to print every other line of the file, starting specifically from line 152 and continuing until the end.
sed -n '153~2p' fileThis command is used to print every other line of the file, starting specifically from line 153 and continuing until the end.
sed -n '154~2p' fileThis command is used to print every other line of the file, starting specifically from line 154 and continuing until the end.
sed -n '155~2p' fileThis command is used to print every other line of the file, starting specifically from line 155 and continuing until the end.
sed -n '156~2p' fileThis command is used to print every other line of the file, starting specifically from line 156 and continuing until the end.
sed -n '157~2p' fileThis command is used to print every other line of the file, starting specifically from line 157 and continuing until the end.
sed -n '158~2p' fileThis command is used to print every other line of the file, starting specifically from line 158 and continuing until the end.
sed -n '159~2p' fileThis command is used to print every other line of the file, starting specifically from line 159 and continuing until the end.
sed -n '160~2p' fileThis command is used to print every other line of the file, starting specifically from line 160 and continuing until the end.
sed -n '161~2p' fileThis command is used to print every other line of the file, starting specifically from line 161 and continuing until the end.
sed -n '162~2p' fileThis command is used to print every other line of the file, starting specifically from line 162 and continuing until the end.
sed -n '163~2p' fileThis command is used to print every other line of the file, starting specifically from line 163 and continuing until the end.
sed -n '164~2p' fileThis command is used to print every other line of the file, starting specifically from line 164 and continuing until the end.
sed -n '165~2p' fileThis command is used to print every other line of the file, starting specifically from line 165 and continuing until the end.
sed -n '166~2p' fileThis command is used to print every other line of the file, starting specifically from line 166 and continuing until the end.
sed -n '167~2p' fileThis command is used to print every other line of the file, starting specifically from line 167 and continuing until the end.
sed -n '168~2p' fileThis command is used to print every other line of the file, starting specifically from line 168 and continuing until the end.
sed -n '169~2p' fileThis command is used to print every other line of the file, starting specifically from line 169 and continuing until the end.
sed -n '170~2p' fileThis command is used to print every other line of the file, starting specifically from line 170 and continuing until the end.
sed -n '171~2p' fileThis command is used to print every other line of the file, starting specifically from line 171 and continuing until the end.
sed -n '172~2p' fileThis command is used to print every other line of the file, starting specifically from line 172 and continuing until the end.
sed -n '173~2p' fileThis command is used to print every other line of the file, starting specifically from line 173 and continuing until the end.
sed -n '174~2p' fileThis command is used to print every other line of the file, starting specifically from line 174 and continuing until the end.
sed -n '175~2p' fileThis command is used to print every other line of the file, starting specifically from line 175 and continuing until the end.
sed -n '176~2p' fileThis command is used to print every other line of the file, starting specifically from line 176 and continuing until the end.
sed -n '177~2p' fileThis command is used to print every other line of the file, starting specifically from line 177 and continuing until the end.
sed -n '178~2p' fileThis command is used to print every other line of the file, starting specifically from line 178 and continuing until the end.
sed -n '179~2p' fileThis command is used to print every other line of the file, starting specifically from line 179 and continuing until the end.
sed -n '180~2p' fileThis command is used to print every other line of the file, starting specifically from line 180 and continuing until the end.
sed -n '181~2p' fileThis command is used to print every other line of the file, starting specifically from line 181 and continuing until the end.
sed -n '182~2p' fileThis command is used to print every other line of the file, starting specifically from line 182 and continuing until the end.
sed -n '183~2p' fileThis command is used to print every other line of the file, starting specifically from line 183 and continuing until the end.
sed -n '184~2p' fileThis command is used to print every other line of the file, starting specifically from line 184 and continuing until the end.
sed -n '185~2p' fileThis command is used to print every other line of the file, starting specifically from line 185 and continuing until the end.
sed -n '186~2p' fileThis command is used to print every other line of the file, starting specifically from line 186 and continuing until the end.
sed -n '187~2p' fileThis command is used to print every other line of the file, starting specifically from line 187 and continuing until the end.
sed -n '188~2p' fileThis command is used to print every other line of the file, starting specifically from line 188 and continuing until the end.
sed -n '189~2p' fileThis command is used to print every other line of the file, starting specifically from line 189 and continuing until the end.
sed -n '190~2p' fileThis command is used to print every other line of the file, starting specifically from line 190 and continuing until the end.
sed -n '191~2p' fileThis command is used to print every other line of the file, starting specifically from line 191 and continuing until the end.
sed -n '192~2p' fileThis command is used to print every other line of the file, starting specifically from line 192 and continuing until the end.
sed -n '193~2p' fileThis command is used to print every other line of the file, starting specifically from line 193 and continuing until the end.
sed -n '194~2p' fileThis command is used to print every other line of the file, starting specifically from line 194 and continuing until the end.
sed -n '195~2p' fileThis command is used to print every other line of the file, starting specifically from line 195 and continuing until the end.
sed -n '196~2p' fileThis command is used to print every other line of the file, starting specifically from line 196 and continuing until the end.
sed -n '197~2p' fileThis command is used to print every other line of the file, starting specifically from line 197 and continuing until the end.
sed -n '198~2p' fileThis command is used to print every other line of the file, starting specifically from line 198 and continuing until the end.
sed -n '199~2p' fileThis command is used to print every other line of the file, starting specifically from line 199 and continuing until the end.
sed -n '200~2p' fileThis command is used to print every other line of the file, starting specifically from line 200 and continuing until the end.
sed -n '201~2p' fileThis command is used to print every other line of the file, starting specifically from line 201 and continuing until the end.
sed -n '202~2p' fileThis command is used to print every other line of the file, starting specifically from line 202 and continuing until the end.
sed -n '203~2p' fileThis command is used to print every other line of the file, starting specifically from line 203 and continuing until the end.
sed -n '204~2p' fileThis command is used to print every other line of the file, starting specifically from line 204 and continuing until the end.
sed -n '205~2p' fileThis command is used to print every other line of the file, starting specifically from line 205 and continuing until the end.
sed -n '206~2p' fileThis command is used to print every other line of the file, starting specifically from line 206 and continuing until the end.
sed -n '207~2p' fileThis command is used to print every other line of the file, starting specifically from line 207 and continuing until the end.
sed -n '208~2p' fileThis command is used to print every other line of the file, starting specifically from line 208 and continuing until the end.
sed -n '209~2p' fileThis command is used to print every other line of the file, starting specifically from line 209 and continuing until the end.
sed -n '210~2p' fileThis command is used to print every other line of the file, starting specifically from line 210 and continuing until the end.
sed -n '211~2p' fileThis command is used to print every other line of the file, starting specifically from line 211 and continuing until the end.
sed -n '212~2p' fileThis command is used to print every other line of the file, starting specifically from line 212 and continuing until the end.
sed -n '213~2p' fileThis command is used to print every other line of the file, starting specifically from line 213 and continuing until the end.
sed -n '214~2p' fileThis command is used to print every other line of the file, starting specifically from line 214 and continuing until the end.
sed -n '215~2p' fileThis command is used to print every other line of the file, starting specifically from line 215 and continuing until the end.
sed -n '216~2p' fileThis command is used to print every other line of the file, starting specifically from line 216 and continuing until the end.
sed -n '217~2p' fileThis command is used to print every other line of the file, starting specifically from line 217 and continuing until the end.
sed -n '218~2p' fileThis command is used to print every other line of the file, starting specifically from line 218 and continuing until the end.
sed -n '219~2p' fileThis command is used to print every other line of the file, starting specifically from line 219 and continuing until the end.
sed -n '220~2p' fileThis command is used to print every other line of the file, starting specifically from line 220 and continuing until the end.
sed -n '221~2p' fileThis command is used to print every other line of the file, starting specifically from line 221 and continuing until the end.
sed -n '222~2p' fileThis command is used to print every other line of the file, starting specifically from line 222 and continuing until the end.
sed -n '223~2p' fileThis command is used to print every other line of the file, starting specifically from line 223 and continuing until the end.
sed -n '224~2p' fileThis command is used to print every other line of the file, starting specifically from line 224 and continuing until the end.
sed -n '225~2p' fileThis command is used to print every other line of the file, starting specifically from line 225 and continuing until the end.
sed -n '226~2p' fileThis command is used to print every other line of the file, starting specifically from line 226 and continuing until the end.
sed -n '227~2p' fileThis command is used to print every other line of the file, starting specifically from line 227 and continuing until the end.
sed -n '228~2p' fileThis command is used to print every other line of the file, starting specifically from line 228 and continuing until the end.
sed -n '229~2p' fileThis command is used to print every other line of the file, starting specifically from line 229 and continuing until the end.
sed -n '230~2p' fileThis command is used to print every other line of the file, starting specifically from line 230 and continuing until the end.
sed -n '231~2p' fileThis command is used to print every other line of the file, starting specifically from line 231 and continuing until the end.
sed -n '232~2p' fileThis command is used to print every other line of the file, starting specifically from line 232 and continuing until the end.
sed -n '233~2p' fileThis command is used to print every other line of the file, starting specifically from line 233 and continuing until the end.
sed -n '234~2p' fileThis command is used to print every other line of the file, starting specifically from line 234 and continuing until the end.
sed -n '235~2p' fileThis command is used to print every other line of the file, starting specifically from line 235 and continuing until the end.
sed -n '236~2p' fileThis command is used to print every other line of the file, starting specifically from line 236 and continuing until the end.
sed -n '237~2p' fileThis command is used to print every other line of the file, starting specifically from line 237 and continuing until the end.
sed -n '238~2p' fileThis command is used to print every other line of the file, starting specifically from line 238 and continuing until the end.
sed -n '239~2p' fileThis command is used to print every other line of the file, starting specifically from line 239 and continuing until the end.
sed -n '240~2p' fileThis command is used to print every other line of the file, starting specifically from line 240 and continuing until the end.
sed -n '241~2p' fileThis command is used to print every other line of the file, starting specifically from line 241 and continuing until the end.
sed -n '242~2p' fileThis command is used to print every other line of the file, starting specifically from line 242 and continuing until the end.
sed -n '243~2p' fileThis command is used to print every other line of the file, starting specifically from line 243 and continuing until the end.
sed -n '244~2p' fileThis command is used to print every other line of the file, starting specifically from line 244 and continuing until the end.
sed -n '245~2p' fileThis command is used to print every other line of the file, starting specifically from line 245 and continuing until the end.
sed -n '246~2p' fileThis command is used to print every other line of the file, starting specifically from line 246 and continuing until the end.
sed -n '247~2p' fileThis command is used to print every other line of the file, starting specifically from line 247 and continuing until the end.
sed -n '248~2p' fileThis command is used to print every other line of the file, starting specifically from line 248 and continuing until the end.
sed -n '249~2p' fileThis command is used to print every other line of the file, starting specifically from line 249 and continuing until the end.
sed -n '250~2p' fileThis command is used to print every other line of the file, starting specifically from line 250 and continuing until the end.
sed -n '251~2p' fileThis command is used to print every other line of the file, starting specifically from line 251 and continuing until the end.
sed -n '252~2p' fileThis command is used to print every other line of the file, starting specifically from line 252 and continuing until the end.
sed -n '253~2p' fileThis command is used to print every other line of the file, starting specifically from line 253 and continuing until the end.
sed -n '254~2p' fileThis command is used to print every other line of the file, starting specifically from line 254 and continuing until the end.
sed -n '255~2p' fileThis command is used to print every other line of the file, starting specifically from line 255 and continuing until the end.
sed -n '256~2p' fileThis command is used to print every other line of the file, starting specifically from line 256 and continuing until the end.
sed -n '257~2p' fileThis command is used to print every other line of the file, starting specifically from line 257 and continuing until the end.
sed -n '258~2p' fileThis command is used to print every other line of the file, starting specifically from line 258 and continuing until the end.
sed -n '259~2p' fileThis command is used to print every other line of the file, starting specifically from line 259 and continuing until the end.
sed -n '260~2p' fileThis command is used to print every other line of the file, starting specifically from line 260 and continuing until the end.
sed -n '261~2p' fileThis command is used to print every other line of the file, starting specifically from line 261 and continuing until the end.
sed -n '262~2p' fileThis command is used to print every other line of the file, starting specifically from line 262 and continuing until the end.
sed -n '263~2p' fileThis command is used to print every other line of the file, starting specifically from line 263 and continuing until the end.
sed -n '264~2p' fileThis command is used to print every other line of the file, starting specifically from line 264 and continuing until the end.
sed -n '265~2p' fileThis command is used to print every other line of the file, starting specifically from line 265 and continuing until the end.
sed -n '266~2p' fileThis command is used to print every other line of the file, starting specifically from line 266 and continuing until the end.
Advanced Addressing Options
sed '3 s/old/new/' fileReplace only on the third line.
sed '1,3 s/old/new/' fileReplace from the first line to the third line.
sed '/pattern/ s/old/new/' fileReplace only on lines matching the pattern.