Search Results

Search: Posts Made By: ravi_agarwalla
1,107
Posted By ravi_agarwalla
Hi itkamaraj, Thanks as it worked. Can...
Hi itkamaraj,

Thanks as it worked.

Can you please explain me how it is working so that i can also try some other possible things.

I am looking for some report purpose.




----------...
1,107
Posted By ravi_agarwalla
I need output in below format but not able to...
I need output in below format but not able to think how to write

Attached is the txt format for output file. i tried to type with space here but its not accepting.
1,107
Posted By ravi_agarwalla
awk command help
Hi All,

I am trying to write one command but failing to do so..

Input:

1 a 4
2 b 5
3 c 6

Output
4 5 6
1 a
2 b
3 c

Kindly assist
1,714
Posted By ravi_agarwalla
How its reading every line to check the length of...
How its reading every line to check the length of each line....?

I thought we can use only while read line
1,714
Posted By ravi_agarwalla
Hi Its working fine but can you please explain...
Hi Its working fine but can you please explain how it works. Thanks
1,714
Posted By ravi_agarwalla
Command required in shell script.
Hi All

I have thousands of files. Each files are having lines with different length. I need to print those filenames whose length of the lines are more than 15.
Contents of the files can have...
1,922
Posted By ravi_agarwalla
Hi, echo 'DEV=LONG^cmd/usr/bak/ade4^"' |...
Hi,

echo 'DEV=LONG^cmd/usr/bak/ade4^"' | sed 's#..$#.txt&#'

I would like to know how this sed command will work?

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code) when...
8,948
Posted By ravi_agarwalla
Hi, I want to know how the command will...
Hi,

I want to know how the command will work with the above data.. it will be good if u explain the command and how it will join.
awk '{if(val==$1){gsub(val,"");printf $0}else{if(NR>1)print...
8,948
Posted By ravi_agarwalla
awk '{if(val==$1){gsub(val,"");printf...
awk '{if(val==$1){gsub(val,"");printf $0}else{if(NR>1)print "";val=$1;printf $0}}END{print ""}' input_file

can someone explain the above command. how it will work
1,940
Posted By ravi_agarwalla
Hi thanks for the reply.. i am getting the...
Hi thanks for the reply.. i am getting the desired result. Thank you very very very much

Can you explain how it works broadly so that i can gain little more knowledge abt unix.i am not able to...
1,940
Posted By ravi_agarwalla
values are getting right justified after...
values are getting right justified after increasing the 6th field value by 2 which will stop my process.look at the output nicely in 6th field. it should be like this only.

1|2345|23|34|98|6 |2...
1,940
Posted By ravi_agarwalla
for your question Are you saying the...
for your question

Are you saying the numbers in certain columns have to be padded with spaces to at least 2 length? Or do you have potentially random spacing in your file you wish to preserve?...
1,940
Posted By ravi_agarwalla
ok let me check. but can you explain how it...
ok let me check. but can you explain how it works.. what the split will do.. and if my file has more than 50 columns and i want to increase value of 40th field then will it work?


below is what i...
1,940
Posted By ravi_agarwalla
ok let me check. but can you explain how it...
ok let me check. but can you explain how it works.. what the split will do.. and if my file has more than 50 columns and i want to increase value of 40th field then will it work?
1,940
Posted By ravi_agarwalla
my original file is below one ...
my original file is below one
1|2345|23|34|98|6 |2
2|4356|54|12|76|5 |5
3|2342|65|76|4 |3 |7
4|4556|76|34|54|2 |8
5|2352|87|12|23|7 |9
and i want output of 6th field to get increase by...
1,940
Posted By ravi_agarwalla
getting problem in awk command
Hi,

I have one file with tab delimited values in it. i want to increase the value of 6th field by 2 if value of 3rd field is greater than 2 . The command is working fine but space between the...
1,679
Posted By ravi_agarwalla
i am not able to understand what -El...
i am not able to understand what
-El ".*\s.*\s.*\s.*" means
1,679
Posted By ravi_agarwalla
can you please explain how the script works
can you please explain how the script works
1,679
Posted By ravi_agarwalla
how to find files
1st file

1 4 7
c b 8
3 6 a

2nd file

z 6 1
q g w
3 t 5

suppose i have 1000 files with 3 fields.I don't know if there is value in 4th fields out of those 1000 files. I want to print...
Showing results 1 to 19 of 19

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