Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: leghorn
1,072
Posted By leghorn
my bad ! Its bash :) how can we use awk for...
my bad !
Its bash :)
how can we use awk for this ??
1,072
Posted By leghorn
Getting lines from .txt file
Hi

I have a file with contents:

NAMES
John
carrey
williams

How can I get all the names and store them in seperate variables(or arrays)

please keep in mind that the no. of such names is...
Forum: UNIX and Linux Applications 08-26-2013
980
Posted By leghorn
Mysql erratic output
Hi,this doesnt give any output
mysql -uroot -phruti2 -B -e "use WebNmsDB;select HEADERINDEX from meas_headers where CLLI= '$clli' and IVALSTART>'$ivalstart' and IVALSTART<'$ivalend' and...
1,102
Posted By leghorn
Erratic output
Hi
I have written a shell script to execute my data base query

mysql -uroot -pshruti2 -B -e "use WebNmsDB;select HEADERINDEX from tekelec_meas_headers where CLLI=$clli and \...
1,331
Posted By leghorn
1st one looks good .. how do I save these values...
1st one looks good .. how do I save these values in the separate variables

thnx anyway,big help :)
1,078
Posted By leghorn
thanks it done
thanks it done
1,331
Posted By leghorn
Hi yeah I did not,becoz they are not needed ...
Hi
yeah I did not,becoz they are not needed
please see that there are 11 fields in the first line .. "CLLI","SWREL" ...
corresponding to these there are values in the next line ..
so the value of...
1,331
Posted By leghorn
Extracting field values from .csv
How can I select the bold fields from the following?

"CLLI","SWREL","RPTDATE","RPTIME","TZ","RPTTYPE","RPTPD","IVALDATE","IVALSTART","IVALEND","NUMENTIDS"
"tklc9010801","EAGLE5...
1,078
Posted By leghorn
:O please explain the code you have written ...
:O

please explain the code you have written

Also,in the perl snippet there were two associative arrays line1 and line2 wherein the values were being stored. How are you doing it in shell ??...
1,078
Posted By leghorn
Perl to shell script
Following is the code in perl. Can we write the same thing in shell scripts ?? If yes how ? I have used associative arrays but unable to achieve what this is doing
open MYFILE, "<", "$ARGV[0]" or...
665
Posted By leghorn
Data comparison
Hi

I have a linux server with mysql installed.There is some data in mysql tables.
Also.I have a .csv file (not from the aforementioned database)
I need to compare the data in the database nad...
1,091
Posted By leghorn
Associative array
I have an associative array named table
declare -A table
table["apple"]="fruit"
table["tomato"]="veggie"
table["highway"]="GT"
table["artist"]="eminem"

Now say I have a variable returning the...
978
Posted By leghorn
Thanks all :)
Thanks all :)
978
Posted By leghorn
how about this ?? fullname="$1" echo...
how about this ??
fullname="$1"
echo $fullname
name= "$fullname" | cut -f1 -d"."
echo $name


echo fullname works
bt cut command isnt working

what do i do ?

---------- Post updated at...
978
Posted By leghorn
Getting a file name from input file
Hi

suppose I run my script using an argument (abc.xyz)
i want to strip the extension off nad just use the file name for further manipulations.

any ideas ?


~thanks
1,228
Posted By leghorn
the difference as well
the difference as well
1,228
Posted By leghorn
that helped thanks ---------- Post updated...
that helped thanks

---------- Post updated at 12:25 PM ---------- Previous update was at 12:20 PM ----------

However ,
what if I want to retrieve each of the lines and put all the values in...
1,228
Posted By leghorn
these files are .csv format I need to create...
these files are .csv format
I need to create shell script only

seeing the diff is secondary.
I wish to see if the two files are the same first up

~thanks
1,228
Posted By leghorn
is there any "easy" way I can see if these two...
is there any "easy" way I can see if these two files are the same ??
If different, i need to print the difference
I have a perl script for that purpose. It seems to output erractically.
I want to...
1,228
Posted By leghorn
Comparing two files
Hi

I have two files -- abc and xyz
contents of abc:
K","lr1207i04","1207","B ","MTP2",60,60,0,0,960,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1800,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...
1,066
Posted By leghorn
Linux capabilities discussion
Hi

I'm trying to compile my linux kernel with CONFIG_SECURITY_CAPABILITIES=y.
any idea what this thing does ??

Also another question , If I compile the kernel that I'm currently using ,...
4,023
Posted By leghorn
Done ! :)
Done ! :)
4,023
Posted By leghorn
Stunnel as non root !!
HI

I'm trying to install stunnel as(or in) non-root user.
there are these options setuid and setgid in stunnel.conf ,that by default are "nobody". but u can change them to "user" .. to enable...
1,199
Posted By leghorn
hi completely in line with what you are...
hi

completely in line with what you are saying.
and its true that it asks for us to be in root to compile and/or install the binaries and the program itself. And I'm down with that. lets compile...
1,199
Posted By leghorn
point taken ! also note that for stunnel...
point taken !

also note that for stunnel ,there is a file called stunnel.conf , wherein there are parameters like setuid and setgid .. where in if u specify the users, and compile the binaries to...
Showing results 1 to 25 of 34

 

Featured Tech Videos

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