Hai
I have a flat file which contains more than 6 crore lines or records. I want to delete only one line, using line number. For example I want to delete 414556 th line . How to do this using sed or awk command.
thanks
Hai
I have a flat file which contains more than 6 crore lines or records. I want to delete only one line, using line number. For example I want to delete 414556 th line . How to do this using sed or awk command.
thanks
sed -n '414556!p' input.txt
sed 414556d file>_file_&&mv _file_ file
GNU sed:
sed -i 414556d file
thank u.The script is working