Search Results

Search: Posts Made By: krisdames
3,797
Posted By krisdames
Bash script to accept password and replace characters with * as they are typed
I googled this and couldn't find an answer, so I rolled my own. Here it is, hope it helps. Feel free to improve on it.

#!/bin/bash
PWORD=
ANYKEY=0
echo -n "Password: "
until [ -z "$ANYKEY" ]...
Forum: Linux 04-07-2011
121,114
Posted By krisdames
Sending a ctrl-C
If you are trying to send a control-C, that's just sending a SIGINT.

kill -s SIGINT <PID>
16,612
Posted By krisdames
To elaborate...
Deepak,

If you define the company name as a variable then you can do something like this:


COMPANY="abc xyz"
REQ_SUBJECT="Email Notification - Requested Process completed - FILE sent to...
1,988
Posted By krisdames
An easier way using awk as you requested: ...
An easier way using awk as you requested:

echo 'x20080613_x20100106.pwr1.gc' | awk -F. '{ print $1 }'


Or to follow the best practice of using the most simple tool for the job, use parameter...
4,881
Posted By krisdames
How about this: #!/bin/bash ASTART=1 ...
How about this:

#!/bin/bash
ASTART=1
AEND=2000
BSTART=1
BEND=2000
for (( a=$ASTART; a <= $AEND; a++ ))
do
for (( b=$BSTART; b <= $BEND; b++ ))
do
echo...
Showing results 1 to 5 of 5

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