Hi
How can i compare a string using if statement in a script?
For eg:
I have
filename="abc.sh"
if ;then
{
.......
.......
}
fi
but this doesnot work .. How will i execute this ??
Thanks in advance (1 Reply)
I am writing a script that ssh's out to our various servers and extracts diskspace info to generate into a report. With the mix of servers linux/solairs 8-10/AIX the easiest way is to use df -k (though I much rather prefer df -h).
I have pasted the relevant code:
dfdata=`ssh -q -o... (1 Reply)
Here is my situation. I need to compare two tab separated files (diff is not useful since there could be known difference between files).
I have found similar posts , but not fully matching.I was thinking of writing a shell script using cut and grep and while loop but after going thru posts it... (2 Replies)
I have the following simplified code that I am planning on putting into a larger shell script. I have been butchering it to try and make work amongst google searches and reading awk documentation.
amixer sset Master toggle | awk '{ if ( /^ Front Left/ { print $7 } == // ) print "MUTED" }'I... (2 Replies)
I'm just interested to know how your sources.list look like. I got some repositories witch give some errors and I would like to clean it up.
and when I do apt-get update I get few lines showing errors like 404 , this is how my list look like:
# deb cdrom:/ squeeze main
# deb cdrom:/... (0 Replies)
Hi,
Is it possible to convert MD5 passwords to SHA-512?
I'm about to migrate an old slackware server to Debian, then I noticed that they don't use same encryption method.
I'm aware that I can change the encryption method in Debian to MD5, but as far as I understand SHA-512 is more secure,... (2 Replies)
Hello Guys,
I was trying to have an SHA256 encryption which further be encrypted into base 64 using AIX unix command shasum -a 256.
What I found in this is my output is different than a website: "online-convertcom"
Actually conversion from website is exactly matching my requirements but... (4 Replies)
Hi,
I am trying to do the following to see if "ip" is already present in a file.
if ; then
echo "hi"
else
echo "hello"
fi
I am seeing errors on the if statement. Can someone please correct the syntax for me? Thanks (2 Replies)
Discussion started by: waince
2 Replies
LEARN ABOUT MOJAVE
package::stash::xs
Package::Stash::XS(3) User Contributed Perl Documentation Package::Stash::XS(3)NAME
Package::Stash::XS - faster and more correct implementation of the Package::Stash API
VERSION
version 0.28
SYNOPSIS
use Package::Stash;
DESCRIPTION
This is a backend for Package::Stash, which provides the functionality in a way that's less buggy and much faster. It will be used by
default if it's installed, and should be preferred in all environments with a compiler.
BUGS
No known bugs (but see the BUGS section in Package::Stash).
Please report any bugs to GitHub Issues at <https://github.com/doy/package-stash-xs/issues>.
SEE ALSO
Package::Stash
SUPPORT
You can find this documentation for this module with the perldoc command.
perldoc Package::Stash::XS
You can also look for information at:
o MetaCPAN
<https://metacpan.org/release/Package-Stash-XS>
o Github
<https://github.com/doy/package-stash-xs>
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Package-Stash-XS>
o CPAN Ratings
<http://cpanratings.perl.org/d/Package-Stash-XS>
AUTHOR
Jesse Luehrs <doy@tozt.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jesse Luehrs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.18.2 2013-07-16 Package::Stash::XS(3)