↧
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 ArticleAnswer by steve for Remove all the rows below a specific row number from one...
awk solution.awk '{if(NR>1){$1="";sub("","")}}1'
View ArticleAnswer 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 ArticleRemove 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