Search Results

Search: Posts Made By: ramkrix
Forum: Programming 12-04-2019
9,840
Posted By ramkrix
Joining Columnar heading from 2 lines
Hi,
Below is the format of a report generated by a custom reporting solution. I opened the report in Notepad++ and junked data and values as in the image below.
...
3,399
Posted By ramkrix
Perl - search and replace a particular field
Hi,

I have a file having around 30 records. Each record has 5 fields delimited by PIPE. Few records in the file having Junk characters in the field2 and field4.


I found the junk charcter and...
Forum: Ubuntu 12-07-2010
6,905
Posted By ramkrix
Thank you Corono668. The link you gave did...
Thank you Corono668. The link you gave did absolute help to me. Thank you verdepollo.
Forum: Ubuntu 12-06-2010
6,905
Posted By ramkrix
Problem wih MySQL installation
Hi,

I tried installing MySql in my Ubuntu OS in my Laptop with the help of the information in below link

How to Install MySQL in Ubuntu 10.04...
Forum: Programming 10-21-2010
6,777
Posted By ramkrix
Thank you Corona and DGpicket. As mentioned, I...
Thank you Corona and DGpicket. As mentioned, I allocated instr with instr[100] and it workd now.. Thank you:)

---------- Post updated at 11:12 AM ---------- Previous update was at 11:08 AM...
Forum: Programming 10-20-2010
6,777
Posted By ramkrix
Problem with Sprintf
Hi,

I have the below sample code to hash the input number read from file. File will have 16 to 19 digit number and executable hash the number using some logic and returns the hashed value. Each...
Forum: Programming 10-20-2010
4,778
Posted By ramkrix
Hi Citaylor, Thank you very much for the...
Hi Citaylor,

Thank you very much for the link. Now I am clear with it. Thanks once again!!
Forum: Programming 10-12-2010
4,778
Posted By ramkrix
sizeof(object) in C++
Hi,

I have defined the class and call the sizeof(object to class) to get the size.


# include <iostream>
# include <iomanip>

using namespace std;
class sample
{
private:
int i;...
14,965
Posted By ramkrix
Try this.. ls <serach directory> | grep...
Try this..


ls <serach directory> | grep -vf input_file.txt


---------- Post updated at 12:57 PM ---------- Previous update was at 12:50 PM ----------

IF thats not working, try with this.....
18,752
Posted By ramkrix
Is this what you reuqire?? $ cat a.sh {...
Is this what you reuqire??


$ cat a.sh
{
b.sh $0 $@ a b c
}

$ cat b.sh
{
GIVEN_CMD="`basename $0` $@"
echo "${GIVEN_CMD}"
}
$ a.sh p q
b.sh a.sh p q a b c
8,513
Posted By ramkrix
Simple to work sdiff file1 file2 | grep "<"...
Simple to work

sdiff file1 file2 | grep "<" | cut -d"<" -f1 | tr -d " " >file 3
2,635
Posted By ramkrix
If you are using Toad, then at the left extreme...
If you are using Toad, then at the left extreme top of your results window, right click, choose Save as -> choose XLS as file format and "," as delimiter.
1,646
Posted By ramkrix
Since these are triggered from the script...
Since these are triggered from the script paralley, Check the ulimit for sub background processes in your system. If ulimit value is less than 2000, I dont think so its possibkle for you to execute.
5,118
Posted By ramkrix
Hi Try this. find . -type f -mtime +1...
Hi Try this.



find . -type f -mtime +1 -exec ls -ltr {} \; | tail -r | tail +3 | awk '{print $9}' | rm -f


This will delete all files other than the three most recent ones.
17,223
Posted By ramkrix
I think it should be runmqtrm -m...
I think it should be


runmqtrm -m $ourManager -q $ourMQSYS.EVTINITQ & triggerMonitorPID=$! 2>/dev/null 1>&2
kill -s SIGKILL $triggerMonitorPID 2>/dev/null 1>&2


Try this..

----------...
1,249
Posted By ramkrix
I cannot understand your requirement clearly.....
I cannot understand your requirement clearly.. Instead of saying input file it would be better to mention the exact name of file you use. Also it would be better to have the few possible values of...
8,681
Posted By ramkrix
Hai.. here is a sample snippet.. First write...
Hai.. here is a sample snippet..
First write all your 120 tables names in a file, say, "tables.lst"..



for table in `cat tables.lst`
do
sqlplus -s << EOF >>file_spool.txt 2>file_err.txt...
Forum: Programming 06-12-2010
34,303
Posted By ramkrix
I tried including the line # include <curses.h>...
I tried including the line # include <curses.h> in my source code. It said it cannot find any fileby this name. Then I executed the below "find" command to know the whereabouts of curses.h file. But...
Forum: Programming 06-12-2010
5,776
Posted By ramkrix
Counting the words in a file
Please find the below program. It contains the purpose of the program itself.
/* Program : Write a program to count the number of words in a given text file */
/* Date : 12-June-2010 */

#...
Forum: Programming 06-12-2010
34,303
Posted By ramkrix
getch & getche not in ubuntu
Hi I tried executing a C rogram with getch or getche functions in my linux termibal @ ubuntu I used gcc compiler.

On compiling the code, it throws error as below. However, I included <stdio,h> and...
Forum: Programming 06-09-2010
12,231
Posted By ramkrix
Thank you Corona and Shamrock
Thank you Corona and Shamrock
Forum: Programming 06-09-2010
12,231
Posted By ramkrix
Thanks for the quick reply. I wll use this....
Thanks for the quick reply. I wll use this. Howevr, I have one more question. Here from the declaration of char *s[], we are easily able to note that there 6 "pointer to char arrays" and using a...
Forum: Programming 06-09-2010
12,231
Posted By ramkrix
Traversing in Array of pointers
Please find the below program. the requirement and description of the program also given:


ganesh@ubuntu:~/my_programs/c/letusc/chap9$ cat fa.c.old
/* Program : write a program to count the...
6,037
Posted By ramkrix
Hope this would do.. tr -s " " "," <infile |...
Hope this would do..

tr -s " " "," <infile | cut -d "," -f2- | tee infile
3,079
Posted By ramkrix
Bold and Underline - not displyed in more/less/vi
I have a script main.shl which has few lines like this

#bold
tput smso
echo "\t\tsome statement\t\t"
tput rmso

I am executing the main.shl from the shell and redirected its output to a...
Showing results 1 to 25 of 76

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