save/restore directory stack in bash Hi, Does anyone know how to save and restore the directory stack in bash? I would like to be able to access and manipulate past directories between logins. Thanks. -g ... 30 Nov 2009 05:53
To swap the application to firefox Dear Sir, I am using firefox 2.0.3 version. The things is that whenever the firefox get alert box in that I need to swap the application to firefox If I am in some other application such as vim, thunderbird, and so on. Whether is it possible , if it is possible any idea to do that one else related url. Tha... 28 Nov 2009 04:43
Replace a particular string at a particular position Hello, Is it possible to replace a particular string at a particular position ? For example, 1 by 2 at position 3 : 0011223344 => 0021223344 but not here (not 1 at position 3) 0001223344 => 0001223344 I can replace any string at a position with sed : (.\{3\}\) but I don't know how to test a strin... 30 Nov 2009 10:14
Replace first field with the file name Hi all, I have a bunch of *.csv files. These are comma separated values. I'd like to replace the first field with the file name, minus the .csv extension. For example, my_file.csv has the following fields: 1,2,3,4 5,6,7,8 I'd like to edit the file to be my_file, 2, 3,4 my_file, 6,7,8 Any ideas? Thanks, S... 30 Nov 2009 05:53
Quote problem This has probably been asked before but I can't seem to find this anywhere. Can someone help me understand what I am seeing. Lets start a session on cygwin... set -x # set $t to some sql preceded by a -Q flag. This will be passed to another command obviously. $ t=" -Q \"SELECT curriculum_last_update FR... 19 Dec 2009 20:21
Swap the appearance order of two lines if needed. Hi all, I want to swap the appearance order of two lines in a file if needed. For detail, please see the following minimal example: .... here_comes_line_b .... here_comes_line_a .... Suppose the following should be the final result I want: .... here_comes_line_a .... here_comes_line_b .... Fur... 3 Dec 2009 03:46
disable backslash escape for command line parameters Hi all, Is it possible to disable backslash escape for command line parameters? I am trying to define a function, wcd, in Cygwin to cd to windows pathname. If I type wcd C:\Windows The function will execute cd /cygdrive/c/Windows Here is my function function wcd { cd /cygdrive/`echo $1 | tr -d... 9 Dec 2009 01:14
10 Reasons Why YOU Should Join Us 10 Reasons Why YOU Should Join Us The Most Proven Leisure Internet Business. Business that earns you more money every day. Thanks to the power of the Internet. Ground floor opportunity backed by a highly successful. 1. Free Registration 2. Start Earning As Soon As You Join 3. Weekly Unli... 22 Nov 2009 06:05
how to pass file names get from grep to sed Dear all: suppose i want to replace cat with dog in all the files within a folder, how could I reach that with grep and sed? i try to use "grep -lr 'cat' * |sed -ei 's/cat/deg/' ", but sed seems cannot eat the file names piped by grep. How could I pass the file names to sed? appreciate your help, miloody ... 3 Dec 2009 03:46
Buy Beautiful Ghost Track Jacket!!! Buy Ed Hardy Women's Beautiful Ghost Track Jacket with the latest fashion and outstanding style from www.aolselling.com with unbelievable prices. http://www.aolselling.com/beautiful-ghost-track-jacket-p-1595.html ... 21 Nov 2009 02:43 |