Search Results

Search: Posts Made By: kds1398
4,008
Posted By kds1398
I think reading user input instead of passing it...
I think reading user input instead of passing it as an argument is just the ticket. Thanks for your assistance.
4,008
Posted By kds1398
Would there be any way to do it inside the script...
Would there be any way to do it inside the script without protecting (that way I don't have to ask people running the script to remember to quote it out) ?
2,844
Posted By kds1398
Here was the final complete code if anyone was...
Here was the final complete code if anyone was interested. I know the sleep commands aren't needed, and neither is the for loop, but they make it feel like the program is taking a few seconds to do...
3,730
Posted By kds1398
What about just this where filename.ksh is the...
What about just this where filename.ksh is the name of the script you created:
./filename.ksh
or this
sh; ./filename.ksh

the command sh invokes the sh shell... it looks like you are trying to...
4,008
Posted By kds1398
passing string which includes metacharacters
I'm trying to create a bash script that takes a URL as one of its arguments like this:

./script.sh http://url.cfm?asdf&asdf=234
variable=$1
echo $variable


I'm having trouble storing the...
2,844
Posted By kds1398
I thought single quotes too, and that didn't work...
I thought single quotes too, and that didn't work right. Here is what actually worked after much trial and error:


sed -n s/'!'/'\\''!'/p
2,844
Posted By kds1398
Non-inserting backslash in sed statement
#!/bin/bash

wget -O tmp.tmp "YouTube - Pretty Woman- Vivian's Goes Shopping!"
temp=`grep 'one&video_id=' tmp.tmp | sed "s/.*one&video_id=\(.*\)'\;.*/\1/"`...
Showing results 1 to 7 of 7

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