Search Results

Search: Posts Made By: mtechnocrat
4,456
Posted By mtechnocrat
Hi Anubu I tried to execute the code which...
Hi Anubu

I tried to execute the code which you have , I am getting foolowing message

sort -k2,2 -kn3 -k1,1 -t'|' file ( I have tried with $ and without $ )

usage: sort [-cmu] [-o...
4,456
Posted By mtechnocrat
HI Anubu I have used nawk , its working OK ,...
HI Anubu

I have used nawk , its working OK , still there is an issue . please have look at the output file .

The actual output file generated by script :
...
4,456
Posted By mtechnocrat
Iam tring to execute the below script but iam...
Iam tring to execute the below script but iam getting error

cd /data/Projects
sort -k2,2 -k 3.1,3.2 -k1,1 -t'|' Payable.txt |
awk -F"|" '
NR == 1 { first_char=substr(int($3),1,1) }
$3 !~ "^...
4,456
Posted By mtechnocrat
Sorting File
Hi All
Thanks a lot for the reponses .

The Output file :

Record_Id | Ord_number | Line_No | External_Contact|
05Paybles |1111| 1 | NA
05Paybles |1111| 10 | NA
05Paybles |1111| 2 | NA...
4,456
Posted By mtechnocrat
Sorting a file
Hi All

I have a file and having 6 columns in that one . I need to sort the file based 2nd , 3rd and 1st column . Can anybody suggest me how to do this .I am new to UNIX.

Output file name :...
Showing results 1 to 5 of 5

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