Search Results

Search: Posts Made By: ramkrix
Forum: Programming 12-04-2019
8,517
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,153
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,688
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,688
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,243
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,243
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,486
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,486
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;...
12,790
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.....
16,771
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
6,995
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,198
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,500
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.
4,889
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.
13,271
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,145
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,219
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
32,345
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,257
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
32,345
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
11,799
Posted By ramkrix
Thank you Corona and Shamrock
Thank you Corona and Shamrock
Forum: Programming 06-09-2010
11,799
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
11,799
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...
5,665
Posted By ramkrix
Hope this would do.. tr -s " " "," <infile |...
Hope this would do..

tr -s " " "," <infile | cut -d "," -f2- | tee infile
2,763
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

 

Featured Tech Videos

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