Search Results

Search: Posts Made By: linuxgeek
91,975
Posted By frappa
Hi, config files seem ok. Googling around...
Hi,

config files seem ok.
Googling around it seems somebody also experienced similar issues; not clear if and how they cleared the problem though..

First thing you could try to exclude...
3,426
Posted By zaxxon
Some people take even bigger values according to...
Some people take even bigger values according to googled info:

echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 4096 >...
1,747
Posted By yazu
perl -E 'say for @ARGV' 1 'a b' -- 1 a b --
perl -E 'say for @ARGV' 1 'a b' --
1
a b
--
1,747
Posted By hfreyer
while (<>) { chomp; split; foreach $i...
while (<>) {
chomp; split;
foreach $i (@_) {
...
}
}
If you want to get more familiar with perl, in any case it is recommendable to study the man pages (which in case of perl are very...
92,572
Posted By radoulov
If you want to preserve the input file content...
If you want to preserve the input file content intact
during processing you should be using something like
this:

while IFS= read -r var; do
printf '%s\n' "$var"
done < infile

Consider...
92,572
Posted By itkamaraj
open(MYINPUTFILE, "<filename"); ...
open(MYINPUTFILE, "<filename");
while(<MYINPUTFILE>)
{
# Good practice to store $_ value because
# subsequent operations may change it.
my($line) = $_;

# Good practice to always strip...
3,199
Posted By yazu
my @home_dir =
my @home_dir =
13,791
Posted By itkamaraj
the problem is $date has \n (new line) character ...
the problem is $date has \n (new line) character


bash-3.00$ /tmp/myfile
/tmp/nyucs01_config_backup.tgz
/misc/nyucs01_config_backup_20110616.tgz

bash-3.00$ cat /tmp/myfile
#!/usr/bin/perl...
5,737
Posted By jim mcnamara
try running the script as setuid - chmod the...
try running the script as setuid - chmod the script 4755. This will NOT work well on Linux

see for syntax:
Perl setuid - FreeBSDwiki (http://www.freebsdwiki.net/index.php/Perl_setuid)
3,310
Posted By ygemici
more simple solution ;) # egrep -v $(sed -n...
more simple solution ;)
# egrep -v $(sed -n 's/uid: \(.*\)/\1/p' access.ldif |sed ':a;N;s/\n/|/;ta') k5login
nisha@SYSTEMS.NYFIX.COM
rdpena@SYSTEMS.NYFIX.COM
service/backups-ora@SYSTEMS.NYFIX.COM...
3,310
Posted By ctsgnb
I updated my previous post, please try ...
I updated my previous post,

please try

/usr/xpg4/bin/awk 'NR==FNR{if (/^uid:/) a[$2];next}{x=$0;sub("@.*","",x);if(!(x in a)) print $1}' access.ldif k5loginor
nawk 'NR==FNR{if (/^uid:/)...
1,104
Posted By rdcwayx
first, set passwordless ssh on all remote servers...
first, set passwordless ssh on all remote servers

while read server
do
ssh $server cat /opt/home/oracle/.k5login >> temp
done < server.list

sort -u temp > output
1,104
Posted By aster007
Cat it to one temporary file and then use "sort...
Cat it to one temporary file and then use "sort -u" to eliminate duplicates and write it to the final file.
Showing results 1 to 13 of 13

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