Ubuntu :: Wget Escape Sequence?
Apr 25, 2011
I'm trying to parse some redfin pages and it seems like I'm having a problem with the # symbol.Running the following:echo 'http://www.redfin.com/homes-for-sale#!search_location=issaquah,wa&max_price=275000 ' > /tmp/issaquah_main.txtwget --level=1 -convert-links --page-requisites -o issaquah/main -i /tmp/issaquah_main.txt
View 3 Replies
ADVERTISEMENT
Apr 14, 2010
I am reading "A Byte of Python" and this is the 2nd time I've completely been confused about something:"What if you wanted to specify a two-line string? One way is to use a triple-quoted string asshown previously or you can use an escape sequence for the newline character - toindicate the start of a new line. An example is This is the first lineThis is thesecond line. Another useful escape sequence to know is the tab - There are many moreescape sequences but I have mentioned only the most useful ones here."In python:>>> "This is the first lineThis is the second"'This is the first lineThis is the second'>>>
View 1 Replies
View Related
Aug 8, 2010
Is there a way to print a transcript generated using script that is coloured using ansi escape sequences while preserving the colours?
I am on OS X 10.6, but any tool that works on OS X or on Linux that can print or create a pdf file will be extremely helpful.
View 1 Replies
View Related
Sep 26, 2010
I know that wget will give up after 20 failed connection attempts, but is there any way I can escape without waiting?
View 1 Replies
View Related
Dec 30, 2009
Is there any way to disable the escape sequence in screen, so the user can't escape and run commands? we have a program that runs under user "shop". We want to wrap it in a screen session, and use .screenrc to set it multiuser and allow the "dev" user to connect to it. Then, if the "shop" user loses his connection, the session will stay running, and then the "dev" user can attach to the session and end it. We want the "shop" user to be unable to enter any "screen" commands.
View 2 Replies
View Related
Jun 19, 2011
If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download. How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it? The wget -c option with the wget.log as the argument to the -c option does not work. What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used.
View 2 Replies
View Related
Apr 28, 2010
This is prolly a quickee, but I not able to figure it out.
I am using sbackup installed on karmic 9.10.
I am using the gui driven sbackup, and the field below needs a passwrd:
ssh://usernameassword@192.168.1.201:/usr/home/username/BAK/
This is a remote backup to a backup storage server.
Nothing fancy, just need to know how to escape a assword@ were the real password uses non numeric/alpha characters.
my passwd includes an "@" so would i use quotes? backticks? backslashes?
Using a passwd like ab34f67 will not work, i use shift'd chars like ^&*@ so forth in my passwrds.
View 1 Replies
View Related
May 4, 2010
and i know of course i could just get used to it. but the X minimize and expand buttons on the windows is flip flopped on 10.04 now i dont have a clue how to change it back. it kept all old settings but changed this one little thing and its bothering me. ive been through compiz and appearance and whatever else i thought might change this. but just couldnt figure it out. i prefer my escape to be at the top right of my page. as i expect a majority of u do as well. anyone wanna point me in the right direction?
View 2 Replies
View Related
Oct 4, 2010
How can I launch a program that requires a path and that path has spaces or special characters in them if (as far as I can tell) .desktop launchers doesn't seem to support escape characters?
View 1 Replies
View Related
Sep 22, 2010
I have modified /etc/issue with the following:
Code:
Today is d @
So when logging in locally you get todays date and time. I want this for SSH users as well
[code]....
View 1 Replies
View Related
Feb 12, 2010
This is effecting fsck check too as it will freeze up till I hit escape. After which it runs fine at boot up. It has drove me batty trying to correct. Worked on 8.04 but my Alfa wireless usb would not run on that Kernel. Up graded to 8.10 worked fine no Alfa wirless. Last upgraded to 9.04 Alfa working great but boot up is not right?
View 2 Replies
View Related
Aug 12, 2010
sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.
35=8 39=1 38=1000 32=13 14=754 31=1.11 44=1.1 100=AMEX,ISE
35=8 39=1 38=1000 32=151 14=205 31=1.1 44=1.1 100=AMEX
35=U 39=2 38=1000 32=45 14=184 31=1.1 44=1.1 100=AMEX,ISE
[code]...
View 11 Replies
View Related
Nov 11, 2010
My goal is to send escape characters from Linux to make scanner's LED blink. I've started with a simple "beep" command:
echo -e "�7"
and it worked. We are using WaveLink emulator and the escape sequences for the LED are
echo -e "�33%150;200;5L"
Linux returns me this: 150;200;5L
So, it doesn't work. What am I doing wrong for the LED sequences?
View 1 Replies
View Related
Sep 17, 2010
I need to occasionally touch a file with the current timestamp as the filename. I would do so this way:
touch `date "+%Y-%m-%d_%H-%M"`.txt
However, I'd like to define an alias for this. When I try adding to the bashrc this:
alias td="touch `date "+%Y-%m-%d_%H-%M"`.txt"
the result is that the filename is the same during the entire session, since the `date ..` gets calculated just once during login...
How can I get the command to expand only when I call the alias? Or must I use a function for this?
View 1 Replies
View Related
Jan 17, 2011
Usually when I need to replace some lines in a file, the first tool that comes to mind is sed -i:
sed -i 's|tool:.*|tool: some-tool|'
However, it's inconvenient when there are . characters in the replacement string:
sed -i 's|host:.*|host: 127.0.0.1|' Is there a better tool for this case?
View 1 Replies
View Related
Oct 20, 2009
Need little advice running this command.
watch -d 'ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr | head'
I get this error message from AWK. awk: cmd. line:1:
{print awk: cmd. line:1: ^ unexpected newline or end of string
I have tried all the usual by trying to escape the single and double quotes in the command but same result. The end result should be the a listing of memory hungry processes that are scanned every 2 seconds (watch default value).
View 2 Replies
View Related
May 3, 2011
i have a cd that shows you an empty directory unless you mount it for the joliet extensions - specifically 25 2f 40. It uses wide characters with the high half null.
View 3 Replies
View Related
Jun 14, 2010
I have the following command:
Code:
(systool -c fc_host -v && systool -c fc_remote_ports -v) | grep -E '+Class Device path = "/sys/class/fc_host/host[0-9]+"$|+node_name.*= "0x[0-9a-f]{16}"$|+Class Device path = "/sys/class/fc_remote_ports/rport-[0-9]+:[0-9]+-[0-9]+"' | sed -e 's#.*host([0-9]*).*"#scsi-qla1-adapter-node=#' -e 's#.*rport-([0-9]*):[0-9]*-([0-9]*).*#scsi-qla1-target-2=#' -e '$!N;s#
##' -e 's#=.*node_name.*= "0x#=#g' -e 's#"$#;#g' | sort
and I want it to execute via ssh on a remote machine through a script. Therefor I need to escape it properly. Because of the massive use of regular expressions and commandline options, this is not an easy task. Is there any (online) utility that will escape that for bash use? I suppose pasting the code in vi and doing some search and replaces should do the trick. But for that I would need a list of characters to escape...
View 2 Replies
View Related
Sep 27, 2010
I want to read a input from user and output something like 'inputcd', which has to escape all backslashes if using double-quote. For instance, the following code would work.
Just curious if any other way I could do it without specify all backslashes? Since that takes much efforts when the sequence is long.
Code:
View 2 Replies
View Related
Jan 23, 2010
Does it possible to escape * in the case statement
Code:
View 2 Replies
View Related
Jul 3, 2011
I installed Ubuntu 11.04 and it refuses to show me a boot menu so I can select single user mode. When it does boot, it continues to cycle as X11 fails, but will not let me change into any of the consoles via control+shift+1-7 or control C or any command. X11/GDM continues to cycle as I hear my video card keep spinning up and down. In every version prior, after 3-4 fails it would give you a shell and say, ok it failed. how to boot into single user mode or escape out of this GDM/X11 fail cycle?
View 1 Replies
View Related
Feb 24, 2010
For a good while I used the following code to swap caps lock and escape, which is very beneficial to me as I have vim-like keybindings in most of the apps that I use:remove Lock = Caps_Lock
add Lock = Escape
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
followed by xmodmap ~/.Xmodmap, which I got from http://vim.wikia.com
/wiki/Map_caps_lock_to_escape_in_XWindows. However, after a recent Debian upgrade with aptitude, this stopped working - or, it does work poorly, in that caps lock toggles caps lock and acts as escape, so I have to press it twice all the time. Is there a better way to do this with X, since my solution stopped working?
View 2 Replies
View Related
Jan 22, 2010
Is it possible to remove the ESC sequences in GNU Screen's output file? Things such as colours, tabs and other escape characters make their way into the log files and become difficult to decipher.
I've tried Dr. Google & Co. as well as reading the manual, but haven't been able to find anything suitable.Perhaps I've overlooked something?
View 3 Replies
View Related
Feb 25, 2011
Fedora 14
When I started I took the defaults and ended up with Evolution.
I have never managed to get it set up to send. It and godaddy are on diffferent planets.
Having used Thunderbird in the past, I downloaded it and it automagically set itself up to send and receive.
So now I use Thunderbird - BUT - when I click on a link in an html page - the mailto macro sends me to something other than THunderbird - perhaps Evolution - and nothing gets sent.
So how do I tell the system that when i click a mailto in firefox I want Thunderbird?
PS I think I found it. In firefox - edit - preferences - applications tab - mmailto - it said Evolution. I changed it so say /usr/bin/thunderbird - will now test it.
YES - Seems that asking a question triggers my brain on how to resolve it. Sorry to waste your time.
View 1 Replies
View Related
Feb 6, 2011
I wish to replace a new line with br (html) but it doesn't seem to work
Code:
message=$(echo ${FORM_message} | tr '
' '<br />' )
what it gives me seems to be ... b...? I am also having problem escaping hash sign in cut command:
Code:
list=$(echo "$line" | cut -d'#;#' -f1) ;
my intention is to split the line with "#;#"
View 5 Replies
View Related
Nov 2, 2010
My question is: what option can I set in vim to see the colouring inside the editor as I would get it in my terminal (and switch off any additional syntax highlighting)?
View 1 Replies
View Related
Mar 18, 2010
I have been battling with regular expressions and am a little lost. I want to find all my files that end with .la and have been trying this
Code:
slocate -r .la$
which finds them but also files like mozilla. The escaped full stop seems to be ignored however this works :
Code:
slocate -r \.la$
so why is the double escaping needed ?
View 3 Replies
View Related
Jul 6, 2011
Since 13.37 I notice that vi needs the 'home' key to switch from input to command mode. I think this is only when I connect via Putty to the machine. When I am on local console it is still ESCape like it used to be. Does anyone know how to set it so that vi will switch from input to command mode using the ESCAPE key when using Putty?
Another vi question :
When you edit htm files, vi goes automagically into some sort of html display mode. Ofcourse I never want that since all I do is edit the html in vi. So I need to go to command mode and type :normal everytime I want to edit html files. Where can you configure that vi (or vim) default to normal mode always?
<I see that vi links to elvis : >
# ls -al /usr/bin/vi lrwxrwxrwx 1 root root 5 Oct 3 2009 /usr/bin/vi -> elvis*
View 6 Replies
View Related
Oct 2, 2010
the project I'm working on requires parsing a text file with fields separated by the | char and using perl to insert/update a mysql database. Some of the fields are simple numeric and others are text fields. In some of the text fields I run into a problem creating a proper insert statement for the perl api to mysql if I don't escape the single quote (') char with a backslash (). I can take each text file and do a manual subsitutiton, but I would prefer to use the script that prepares the text file to do it for me. I've tried sed (ex: sed s/'/\'/g ) and it runs cleanly, but does nothing to accomplish my goal. I suppose I could write a function to read the file character by character and write it out that way, but it seems a waste.
View 2 Replies
View Related
Jun 15, 2011
I just installed F15 and although different, I like it a lot. One thing I don't like, however, is the default auto-completion of environment variables in the terminal. In F14 and older, if you type for instance
Code:
ls $HOME and hit TAB, auto-complete will list the contents of $HOME to search deeper, so to say. But in F15, the terminal automatically escapes the $ sign. If you do the same as above, you get
Code:
ls $HOME
instead of
Code:
ls /home/benny/
how to change the auto-complete settings of the terminal so that $'s are not escaped anymore?
View 7 Replies
View Related