Tags » Shell Script

Bash - delete with sed

Use sed command to delete a string or pattern of string in linux.

echo "parrot-bird" | sed 's/-.*$//'

Output:
parrot

Above command will delete anything after the pattern "-".

Linux

SSL V3 Poodle : Shell script to verify the server

Copy below as poodle.sh

Execute this command as below:

sh poodle.sh <site>

or,

sh poodle.sh <site>:<port>

#!/bin/sh
help()
{
echo
echo "Usage: "
echo "sh poodle.sh <hostname>:<port>" 109 more words

Google

Linux Command: A door to the Linux world

I registered my personal blog site on wordpress.com a month ago. But I don’t where to start to write my first blog. Recently I am reading a book about linux command, LINUX POCKET GUIDE. 113 more words

LINUX POCKET GUIDE

Linux - run vlcplayer as root

When you try to run vlcplayer as root you might encounter below message.

VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports…
57 more words

Linux

Linux - Configure multiple network with iproute2

Iprout2 can be used to access two different networks in parallel from a Linux machine.If you have a Linux machine with interfaces eth0 and eth1, and you want to access internet through eth0 and use eth1 to access restricted resources.you can configure iproute2 to achieve this. 118 more words

Linux

Using Bash to query AD with ldapsearch and also make SOAP requests

So I had a request for an application or script that would present itself to the user at boot up on a netbooted client machine before imaging. 551 more words

Bash - for loop to print numbers

Print numbers(for example 1 to 10) in bash.

for i in {1..10};do echo "$i"; done

Output:

1
2
3
4
5
6
7
8
9
10

Linux