sed

editor lumë për filtrimin dhe transformimin tekst

kopje
94
21
echo this is a test | sed 's/a/my/'

detajet |

kopje
61
13
echo this is not a test | sed -e 's/not //' -e 's/test/another test/'

detajet |

kopje
43
12
sed '/test/ !d' myfile

detajet |

kopje
33
13
echo test12345 | sed 's/\([a-z]*\).*/\1/'

detajet |

kopje
32
7
sed '3a Text to append' myfile

detajet |

kopje
27
3
dd if=/dev/sda | sed 's/Marry/Sally/g' | dd of=/dev/sda

detajet |

kopje
21
2
cat myfile.txt | sed 5q

detajet |

kopje
19
4
sed '1,/^$/ d' myfile

detajet |

kopje
17
6
echo "54321 test" | sed 's/[0-9]*/& &/'

detajet |

kopje
16
3
sed '/test/ d' myfile

detajet |

kopje
15
3
1,$s/\(^.*$\)/#\1/

4 vite, 10 muaj ago kxdemon 3 |

kopje
14
0
echo hi | sed 's/\(h\)\(i\)/\2\1/g'

6 vite, 11 muaj ago examplenow 1 | detajet |

kopje
12
1
sed -i "" 's/find/replace/g' views.py

5 vite, 7 muaj ago george 4 |

kopje
9
2
sed '1,3 d' myfile

detajet |

kopje
5
0
sed -i 's/test/NewSTR/g' myfile

6 vite, 11 muaj ago john2 0 | detajet |

kopje
5
0
echo hi | sed 's/i/sometext&&&&&&&/'

6 vite, 11 muaj ago examplenow 1 | detajet |

kopje
2
0
sed -i 's/foo/bar/g'

5 vite, 8 muaj ago examplenow 1 |

kopje
0
0
zipinfo -T storage | sort -nr -k 7 | sed 15q

burim | detajet |