Search Results

Search: Posts Made By: lovelinux
2,109
Posted By vidyadhar85
Simplest what one can do is.. printf...
Simplest what one can do is..


printf "%s %s %s %s %s %s %s %s\n" $(cat filename)
2,109
Posted By pamu
Assuming your input is same as you have...
Assuming your input is same as you have provided..


xargs -n 8 < file
2,493
Posted By elixir_sinari
awk 'NR>=998;NR==1000{exit}' file sed -n...
awk 'NR>=998;NR==1000{exit}' file
sed -n '998,1000{;p;1000q;}' file
1,701
Posted By RudiC
And, the HERE document is not terminated with an...
And, the HERE document is not terminated with an EOF, and, the SQL command is terminated prematurely (between commit and exit) by a backtick.
2,116
Posted By RudiC
Try this:awk '{$2=(($2==180?0:$2)+180)%360;...
Try this:awk '{$2=(($2==180?0:$2)+180)%360; print}' file
2,116
Posted By elixir_sinari
awk '{t=$2}$2>180{t-=180}$2<180{t+=180}{$2=t}1'...
awk '{t=$2}$2>180{t-=180}$2<180{t+=180}{$2=t}1' file
1,701
Posted By elixir_sinari
Replace your first line with c=$(<insertval) and...
Replace your first line with c=$(<insertval) and let me know.
115,239
Posted By drl
Hi. An available utility, numsum, part of...
Hi.

An available utility, numsum, part of num-utils:
#!/usr/bin/env bash

# @(#) s1 Demonstrate use of numsum.

# Utility functions: print-as-echo, print-line-with-visual-space, debug.
pe()...
115,239
Posted By Klashxx
Try this ( don't know if your system will handle...
Try this ( don't know if your system will handle it ):
awk '{for (i=1;i<=NF;i++){a[i]+=$i;if (i>max){max=i}}}END{for (j=1;j<=max;j++){print a[j]}}' file
Showing results 1 to 9 of 9

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