Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: hemanthsaikumar
1,056
Posted By RudiC
Why don't you combine 345 and 400 into one group,...
Why don't you combine 345 and 400 into one group, and 346 and 399 into another? Are groups always groups of two? Or three?
2,025
Posted By RavinderSingh13
Hello Hemath, Could you please try...
Hello Hemath,

Could you please try following and let me know if this helps.

awk -F, '{for(i=1;i<2;i++){A[o]=A[o]?A[o] ORS "record " $i " sum is " $(i+1):A[o] ORS "record " $i " sum is " ...
2,025
Posted By RavinderSingh13
Hello Hemanth, Following may help you in...
Hello Hemanth,

Following may help you in same. This should work and tested only on the provided format of input.

awk -F, '{for(i=1;i<2;i++){A[o]=A[o]?A[o] ORS "record " $i " sum is " ...
1,126
Posted By junior-helper
If those files are in a dedicated directory, I...
If those files are in a dedicated directory, I mean if there are no files other than the files you want to compare, try this
ls -t | head -n2 | paste - - | xargs diff -qIf there is no output, the...
473
Posted By Scrutinizer
@hemanthsaikumar. Please open a new thread for a...
@hemanthsaikumar. Please open a new thread for a new question..
2,761
Posted By RudiC
Try this:awk -F, 'NF==2 {next} ...
Try this:awk -F, 'NF==2 {next}
{ITM[++c]=$1
AMT[c]=$2+0
CNT[c]=$3+0
TOTA+=$2
TOTC+=$3}
END {for...
2,761
Posted By RudiC
Please use code tags: highlight the contents of...
Please use code tags: highlight the contents of output.txt and click the editor's code button. This is mentioned in clear text just above the editor window.

For your problem (which you do not...
2,078
Posted By clx
Reverse numeric sort ( -nr) on char 1 to 8 (...
Reverse numeric sort ( -nr) on char 1 to 8 ( 2.1,2.8) of second field (20130212.txt) while using "_" as the field separator ( -t"_")
1,152
Posted By rdrtx1
try in script: var=$(echo "$1" | awk -F'-'...
try in script:
var=$(echo "$1" | awk -F'-' '{printf("%04d-%02d-%02d\n", $3, $2, $1);}')
837
Posted By rdcwayx
See my reply in your thread: ...
See my reply in your thread:
https://www.unix.com/shell-programming-scripting/209511-shell-script-print-date-no-records.html
2,318
Posted By rdcwayx
go through the ABS (advanced bash scripting...
go through the ABS (advanced bash scripting guide), you should get all the answers.
...
1,645
Posted By rdcwayx
I have answered your question in another thread. ...
I have answered your question in another thread.

https://www.unix.com/shell-programming-scripting/209511-shell-script-print-date-no-records.html#post302741713
2,318
Posted By rdcwayx
for file in * do count=$(wc -l < $file) ...
for file in *
do
count=$(wc -l < $file)
echo $file `date +%Y/%m/%d` $count
done
Showing results 1 to 13 of 13

 

Featured Tech Videos

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