Search Results

Search: Posts Made By: millan
Forum: Linux 12-28-2016
1,785
Posted By millan
Issue in inserting null string in array
I am getting some values from a file and putting them in an array..but the null strings are not getting passed to the array. So during printing the elements ,the null string is not showing in the...
2,137
Posted By millan
initially i tried with this approach with string...
initially i tried with this approach with string value as CASH$$

a='CASH$$'
/usr/xpg4/bin/grep "EXEC *$a" file

Then this is not working... it is tying to replace $$as pid.

Is there any way...
2,137
Posted By millan
Actually i want to search EXEC<space>*CASH$$A. ...
Actually i want to search EXEC<space>*CASH$$A.
For that i have to assign CASH$$A to a variable a...


a='CASH$$A'
/usr/xpg4/bin/grep -F "EXEC *$a" *.txt


And as you guys suggested i cannot...
2,137
Posted By millan
Grep -F for special character
a='CASH$$A'
/usr/xpg4/bin/grep -F "$a" *.txt
It is not able to grep CASH$$A string as it contains special character $$.
I also tried with

/usr/xpg4/bin/grep -F '$a' *.txt
but still not...
825
Posted By millan
Change the format of the strings
I have Input file as below

1 a
1 b
1 c
2 d
2 e
2 f


I want below output as below.


1 a,b,c
2 c,d,e


Pls suggest how can i do it.
1,559
Posted By millan
i am not sure in which field that string will be...
i am not sure in which field that string will be present..so i cannt use cut or awk print $2
1,559
Posted By millan
Extract a string from a file
I have a file with below contents.
INCLUDE
INCLUDE SYSLIB(SANJ)
INCLUDE SYSLIB(BIS)
NAME BQTFL(R)
dfdg fgbb NAME B

i want to grep for "INCLUDE SYSLIB" in the file and do some operation so...
Forum: Red Hat 07-30-2013
2,015
Posted By millan
it is present. -rwxr-xr-x 1 root root 19856...
it is present.

-rwxr-xr-x 1 root root 19856 Jan 20 2011 /usr/bin/nohup

One more thing i would like to mention here ...if i run main.sh.x and inside that putting child.sh instead of...
Forum: Red Hat 07-29-2013
2,015
Posted By millan
shc utility for background jobs
I have used shc utillity to convert a shell script to it's compiled version.Inside this script i have called another shell script which is also in compled version.

Example:-
Main script:-...
1,714
Posted By millan
Can u show what is ur input and what output you...
Can u show what is ur input and what output you are expecting?
2,282
Posted By millan
You can use nohup command to put one of your...
You can use nohup command to put one of your script to background while other will continue to run in the foreground.


nohup ./scone &
1,074
Posted By millan
sed 's/^ //g' temp2_sample.cir | awk -F" " ...
sed 's/^ //g' temp2_sample.cir | awk -F" " '{print $1}'
5,136
Posted By millan
bash-3.00$ perl -p -e 's/(.*):\s(.*)\s\w+/$1 $2/'...
bash-3.00$ perl -p -e 's/(.*):\s(.*)\s\w+/$1 $2/' a
Error terminated
Warning reboot
Warning filledup
3,426
Posted By millan
During installing this shc utility in solaris i...
During installing this shc utility in solaris i am getting below error.


$ make
/opt/SUNWspro/bin/cc -Wall shc.c -o shc
cc: illegal option -Wall
*** Error code 1
make: Fatal error: Command...
Forum: Solaris 07-26-2013
2,708
Posted By millan
Thank you Scott...it is only available in solaris...
Thank you Scott...it is only available in solaris 10 not below version..is it correct?
Forum: Solaris 07-26-2013
2,708
Posted By millan
Thank you jlliagre.. I tried your code...it is...
Thank you jlliagre.. I tried your code...it is working perfectly


/usr/sfw/bin/ggrep -Fwci string filenames


But my concern is will /usr/sfw/bin/ggrep available in all solaris version?
...
Forum: Solaris 07-26-2013
2,708
Posted By millan
There is another grep in path /usr/xpg4/bin/grep....
There is another grep in path /usr/xpg4/bin/grep.

But it is also giving same error..not allowing to use -F option alongwith -w option.


bash-3.00$ time /usr/xpg4/bin/grep -F -c -iw...
Forum: Solaris 07-26-2013
2,708
Posted By millan
-w option in fgrep for Solaris
I want to use fgrep for a word serch ignoring case and it should dispaly word count along with the file name.

I m using below code


fgrep -wci string filenames


But it is giving error ...
3,143
Posted By millan
Is dialogue a command..never heard u can...
Is dialogue a command..never heard

u can check if it exists or not


which dialogue


or


man dialogue
1,309
Posted By millan
Can u use the code tag button for the code...the...
Can u use the code tag button for the code...the codes are not readable
1,452
Posted By millan
Time taken to run grep in different OS
Hi ,

I am greping a keyword in all sql files in Solaris and Linux.

Solaris

bash-3.00$ time grep -iwc BEN_STARTUP_LERS_TL084701_WHO *.sql
Load__v20130719-prod.sql:0...
1,982
Posted By millan
Trap Oracle error in shell script
sqlplus -s usrname/password@dbSID <<-SQL >> logfile
@create_table.sql
commit;
quit;
SQL


I am running this script to execute an sql file.
I want to display the oracle error if anything...
3,426
Posted By millan
This utillity is not available in my server..i...
This utillity is not available in my server..i have checked with man and which command.Can anyone please help me where to download this.
4,012
Posted By millan
In the sudoers file you have to add the entry as...
In the sudoers file you have to add the entry as NOPASSWD for for the id .May be ur admin can do it.
1,884
Posted By millan
Is it still giving the error after you changed...
Is it still giving the error after you changed the permission of that folder?
Showing results 1 to 25 of 119

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