Search Results

Search: Posts Made By: ganapathi.t
3,406
Posted By ganapathi.t
It is working fine, if I have only one space. But...
It is working fine, if I have only one space. But in my input file, I might have more than single space say " " or " " or " " etc. But I dont know the exact number of spaces.
62,214
Posted By ganapathi.t
You are correct, no need to give -F" ", as the...
You are correct, no need to give -F" ", as the default delimiter for awk command is "<space>". But it is always better practice to use -F" " to specify the delimiter what we are passing...
...
62,214
Posted By ganapathi.t
var1="nbs2yth 3123 1 fsfsa thisissamletext" ...
var1="nbs2yth 3123 1 fsfsa thisissamletext"
echo $var1 | awk -F" " '{print $1}'
3,406
Posted By ganapathi.t
Checking for null value
Dear All,

I'm glad that I've also joined in this forum. Good work fellas... :b:
Keep going...! :)

I am having a .csv file where I am reading the values with comma(,) as delimiter. After...
Showing results 1 to 4 of 4

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