Search Results

Search: Posts Made By: vikanna
12,655
Posted By kumaran_5555
This code should work for you If your...
This code should work for you

If your seperator is pipe instead of comma use replace the dot with pipe inside -F"[-,:. ]"


awk -F"[-,:. ]" '

BEGIN{
min_date="99999999"...
34
87,714
Posted By ungalnanban
Vim tips and tricks
Vim Tips and Tricks


Save and quit



:w => Save [:w filename writes the content to the specified file from current file]

:q => Exit as long as there have been no changes

:q! =>...
17,047
Posted By itkamaraj
don't store the header in the variable. (it is...
don't store the header in the variable. (it is losing the tab )

use it like this


col_cnt=`nawk -F"\t" '{ if(NR==1) { print NF }}' $1`



bash-3.00$ cat /tmp/myfile # tab seperated...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy