Search Results

Search: Posts Made By: markjason
5,235
Posted By markjason
hope this helps.. sort -t "," -k 1.1,1.4 -k...
hope this helps..
sort -t "," -k 1.1,1.4 -k 2.1,2.4 -k 4.1,4.2nr file


Thanks
Mark.
5,235
Posted By markjason
using sort range i figured out the solution. ...
using sort range i figured out the solution.

Thanks
Mark.
5,235
Posted By markjason
reverse sort
Hello,
How do i sort a csv file. i should be sorting column1(varchar),column2*(varchar) in ascending and column4 in descending order(numeric datatype).

I tried few combinations of sort, but...
6,800
Posted By markjason
try using sort,cut,uniq.
try using sort,cut,uniq.
8,346
Posted By markjason
Thanks Anbu.
Thanks Anbu.
8,346
Posted By markjason
Thanks guys, Actually my question is if ...
Thanks guys, Actually my question is

if
1) i have a variable say var=1,9,2 .....etc (
2) I have a file with 10 fields file.dat
3) I need to concatenate $1$9$2 ... from file.dat(I can have...
8,346
Posted By markjason
Jim, this works if we know how many fields we are...
Jim, this works if we know how many fields we are concatenating.,

in my case, i have n number of fields in the variable that needs to be concatenated.

How can i achieve this. Thanks all for...
8,346
Posted By markjason
sorry , i didn't phrase the question correctly. ...
sorry , i didn't phrase the question correctly.
actually i have those particular fields that needs to be concatenated in a variable.

like this
var1 = 1 24 3

so i need to concatenate these...
8,346
Posted By markjason
concat fields
hi

I have a file, I need to concatenate depening on the no of columns i need to concatenate.
for example i need to concatenate field1,filed34,field2( no of columns is not always 3, it can be any...
2,388
Posted By markjason
sorry -s option only works for files.
sorry -s option only works for files.
2,388
Posted By markjason
-s option to find object exists not working.
is there a direct command to find whether directory is empty, -s option doesn't seem to work.


Mark.
8,345
Posted By markjason
i am using ksh
i am using ksh
26,306
Posted By markjason
use ex editor ex $filename <<! $n i ...
use ex editor
ex $filename <<!
$n
i
line1
line2
.
:w
!



Thanks
Mark.
8,345
Posted By markjason
assign a value to variable
I have to assign a result of a query to a vairable like this

how can i do this

Query = select count(*) from table
x=`db2 ${Query}| sed -n '4p'`

but this doesn't work, is there any other way...
Showing results 1 to 14 of 14

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