Search Results

Search: Posts Made By: h8mmer
2,695
Posted By h8mmer
worked, brilliant. :b: cheers Scott
worked, brilliant. :b:

cheers Scott
2,695
Posted By h8mmer
redirect input within case statement?
I'm trying to run the logic below but get a `<' is not matched error message when I return a Y or y;

printf "Run this [Y/N]? : "
read RESP
case $RESP in
Y|y)
cat <<EOF > file
today...
1,543
Posted By h8mmer
Brainfog today! ...so much for no such thing...
Brainfog today!

...so much for no such thing as a stupid question.... :o

Thanks Ken
1,543
Posted By h8mmer
Execute a command from a variable?
Hi,
Is it possible to execute a command assigned in a variable?

So if I declare the following;
TIME=`date +%H%M`

it will assign the output of the command run at the time the variable is read...
23,732
Posted By h8mmer
brilliant, that got it. many thanks vgersh99
brilliant, that got it.

many thanks vgersh99
23,732
Posted By h8mmer
How to insert a char in every two?
Hi,

I've written a script to interrogate all fibre devices on our systems and output the WWNs to a file. I now want to insert a ":" every 2 characters into the WWN so I can write another script to...
Showing results 1 to 6 of 6

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