Search Results

Search: Posts Made By: Anamica
1,409
Posted By RavinderSingh13
Hello, Here is aan exmaple for same. ...
Hello,

Here is aan exmaple for same.


echo "test_!234" | sed 's/[[:space:]]//g;s/[[:punct:]]//g'
test234


Hope it may help.



Thanks,
R. Singh
1,409
Posted By Scrutinizer
Try: awk 'NR==58{print $1}' file
Try:
awk 'NR==58{print $1}' file
3,486
Posted By RavinderSingh13
Thanks Akshay, following should work. ...
Thanks Akshay, following should work.


xargs -n1 < file_name | awk -vs1="159.93" '$0 !~ s1 {print}; END{print s1}'



Output should be as follows.


575732
0.012
0.005
0.297
0.012...
3,486
Posted By Akshay Hegde
change loop make { for(i=3;i<=NF;i++)....}
change loop make { for(i=3;i<=NF;i++)....}
3,486
Posted By Yoda
awk '{for(i=2;i<=NF;i++) print $i}' file1
awk '{for(i=2;i<=NF;i++) print $i}' file1
3,486
Posted By pravin27
echo ". 351706 5861.8 0.026 0.012 12.584 0.026...
echo ". 351706 5861.8 0.026 0.012 12.584 0.026 0.012 12.582 0.000 0.000 0.000" | awk '$1=$1' OFS="\n"
3,486
Posted By makavelli
Hope this helps: echo "351706 5861.8 0.026...
Hope this helps:

echo "351706 5861.8 0.026 0.012 12.584 0.026 0.012 12.582 0.000 0.000 0.000" | sed 's/ /\n/g'

OR

echo "351706 5861.8 0.026 0.012 12.584 0.026 0.012 12.582 0.000 0.000...
1,657
Posted By hanson44
$ cut -d " " -f 3- file | tr " " "\n" 39992 ...
$ cut -d " " -f 3- file | tr " " "\n"
39992
0.098
5.195
0.034
0.001
1.091
182
0.000
0
0.071
4.252
0.033
0.001
666.53
1,657
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

You certainly searched in these forums for a proposal, as also required by forum rules? There are plenty of suggestions for your problem. For the...
Showing results 1 to 9 of 9

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