Search Results

Search: Posts Made By: rramkrishnas
2,419
Posted By rbatte1
To back up what my learned friend RudiC says, the...
To back up what my learned friend RudiC says, the reason is that the underscore is not seen as delimiting the end of the variable. It is an allowable character in the variable name, so you will end...
2,419
Posted By RudiC
Enclose the x variable expansion in braces,...
Enclose the x variable expansion in braces, like ..._${x}_....
3,526
Posted By RavinderSingh13
Hello rramkrishnas, I am not sure the output...
Hello rramkrishnas,

I am not sure the output you have shown which shows us leading spaces are uneven, so if you need exact output as you have shown us then following may be helpful to you.

awk...
3,526
Posted By RavinderSingh13
Hello rramkrishnas, Could you please try...
Hello rramkrishnas,

Could you please try following and let me know if this helps you.
Let's say following is the Input_file:

cat Input_file
<Node>xxxxxx
<Node>yyyyy</Node>
<Node>zzzzzz...
3,644
Posted By Yoda
awk 'BEGIN{print "file...
awk 'BEGIN{print "file name","out.txt"}FNR>1{print FILENAME":"$0}' *.txt
2,035
Posted By CarloM
Try ! )
Try

!
)
974
Posted By pravin27
try below code awk -F","...
try below code

awk -F"," 'NR==FNR{a[$1]=$0;next} a[$1] {a[$1]=a[$1]","$2","$3} END {for (i in a) { print a[i]}}' file1 file2 file3 | sed 's/,$//g' | sort -t"," -k1 -n
974
Posted By pravin27
Please use code tag and provide desire o/p in...
Please use code tag and provide desire o/p in proper format.
Showing results 1 to 8 of 8

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