Search Results

Search: Posts Made By: shash
1,573
Posted By shash
Yes please
Yes please
1,573
Posted By shash
This works but there are something which I don't...
This works but there are something which I don't want it to be replaced though. Any other better way please?

---------- Post updated at 08:56 AM ---------- Previous update was at 08:55 AM...
1,573
Posted By shash
Assign variable value from file to another with the same name
Hi All,

I need to read two config files in a shell script. In that I need to assign a value from one config file to another. I 'm using bash.

config_env.txt

prefix=tab_

...
2,558
Posted By shash
Hi Don, rdrtx1 code helped me to only have...
Hi Don,

rdrtx1 code helped me to only have the records which are in file1.txt which I forgot to specify and I wanted to understand the code.

Thanks
Shash
2,558
Posted By shash
Thanks for all the inputs. It was of great help. ...
Thanks for all the inputs. It was of great help.

---------- Post updated at 04:56 AM ---------- Previous update was at 04:21 AM ----------



Hi,

Can you please explain me about the code?
...
2,558
Posted By shash
Hi Don, I tried to print but unable to join...
Hi Don,

I tried to print but unable to join the files and getting error.


awk '{print substr($0,1,3),substr($0,8,2),substr($0,10,2)}' file1.txt
awk '{print...
2,558
Posted By shash
Joining fixed width files
Hi All,

I need to join fixed width files on a column which is position 1 to 3 and need to have all the records from file1

file1.txt
Cu1nullL1L2
Cu2nullL1L2
Cu3nullL1L2

file2.txt
Cu1B1B2...
Forum: Programming 06-03-2016
2,408
Posted By shash
Thanks for the reply Don Cragun. Apologies, I 'm...
Thanks for the reply Don Cragun. Apologies, I 'm not into C programming.
The code does have #ifdef in one of the .c file. Can you please let me know how to determine the flags/macros to be used.
Forum: Programming 06-02-2016
2,408
Posted By shash
Makefile for g++
Hi All,

We have moved our OS from Sun Solaris to Linux and also some of the compilers.
Our old makefile used to be as below:

CC=cc
FLAGS=-G -KPIC -DLG_SOLARIS_OS
DEFINES=-DSunOS
SYSLIBS=-lc...
1,210
Posted By shash
Thanks Pravin27 it worked.
Thanks Pravin27 it worked.
1,210
Posted By shash
Delete duplicate row based on criteria
Hi,

I have an input file as shown below:


20140102;13:30;FR-AUD-LIBOR-1W;2.495
20140103;13:30;FR-AUD-LIBOR-1W;2.475
20140106;13:30;FR-AUD-LIBOR-1W;2.495
20140107;13:30;FR-AUD-LIBOR-1W;2.475...
1,596
Posted By shash
Brilliant! Many thanks it worked! ----------...
Brilliant! Many thanks it worked!

---------- Post updated at 07:33 AM ---------- Previous update was at 07:23 AM ----------

Any idea if the same needs to be done for different columns?
...
1,596
Posted By shash
Replace specific column delimiter
Hi All,

I have a file with a pipe delimiter. I need to replace the delimiter with html tags.

I managed to get all the delimiters replaced along with first and last but the requirement is that I...
2,273
Posted By shash
Many thanks Yoda & RudiC. Both your solutions...
Many thanks Yoda & RudiC. Both your solutions worked!

---------- Post updated at 11:58 AM ---------- Previous update was at 04:04 AM ----------

Hi RudiC,

Is there a way to have thousand...
1,207
Posted By shash
Thanks RudiC! I managed to do the formatting...
Thanks RudiC! I managed to do the formatting using HTML.
1,207
Posted By shash
Mail Format Issues
Hi All,

I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email.

...
2,273
Posted By shash
Help required in printing in specific format
Hi All,

I 'm matching two files based on the first 2 columns and then populate other fields along with subtraction of few fields.
I have managed to get the output. However, is there a easier way...
2,222
Posted By shash
Thanks MadeInGermany. But, I don't have a clue...
Thanks MadeInGermany. But, I don't have a clue whether we have one. Can you please let me know how to do it in perl? So that I can give it a try.
2,222
Posted By shash
Apologies, the directory I was using is (i.e....
Apologies, the directory I was using is (i.e. directory1 is /powerdata0013/ALMDW/SrcFiles/ALM/QRM)


/dev/powerdata0013 /powerdata0010/FMIS/SrcFiles/AP_578 mmfs 13 Sep 18:53...
2,222
Posted By shash
/dev/hd4 / jfs2 13 Sep...
/dev/hd4 / jfs2 13 Sep 18:48 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 13 Sep 18:48 rw,log=/dev/hd8
/dev/hd9var /var jfs2 ...
2,222
Posted By shash
Hi, I haven't used any escape character or...
Hi,

I haven't used any escape character or "|".

df /directory1 yields:

Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/directory1 17179869184 7022791168 60% 159329...
2,222
Posted By shash
File sort performance
Hi,

I have got a 9.3GB file and it is taking 1h 8min to sort file using the following code:


sort -T /directory1 -t | -k9,9 -k8,8n /directory1/file1 > /directory2/file2


Is there a faster...
3,059
Posted By shash
I 'm reading it from a global variable which I...
I 'm reading it from a global variable which I can't change. I need to read those variables as I had mentioned. Many thanks for your help.
3,059
Posted By shash
Many thanks Rudi & bakunin. Got it working as...
Many thanks Rudi & bakunin. Got it working as follows:

table_name=table1,table2,table3
col_name=col1,col2,col3

OI="$IFS"
IFS=,
table_arr=($table_name)
col_arr=($col_name)
IFS="$OI"
...
3,059
Posted By shash
Thanks bakunin. The issue is the variable will be...
Thanks bakunin. The issue is the variable will be in the following format:


table_name=table1,table2,table3
col_name=col1,col2,col3

In this case how to use the array please?
Showing results 1 to 25 of 70

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