Quantcast
Channel: Remove all the rows below a specific row number from one specific column - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by fd0 for Remove all the rows below a specific row number from one...

With GNU sed :sed '2,$ s/[^\t]*\t//' filePortable :tab=$(printf '\t')sed '2,$ s/[^'"$tab"']*'"$tab"'//' file2,$ from the second line to the last lines/[^\t]*\t// substitute any character except the tab...

View Article



Answer by steve for Remove all the rows below a specific row number from one...

awk solution.awk '{if(NR>1){$1="";sub("","")}}1'

View Article

Answer by xenoid for Remove all the rows below a specific row number from one...

sed 'N,$s/^[^ ]\+[ ]\+//'where N is the line number of the fist line to lose its first column.

View Article

Remove all the rows below a specific row number from one specific column

I've asked a question before on true row deletion, and got some great answers, but I'm now interested to know how you would remove all the rows below a specific row number from one specific column. All...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>