Description:
Using and programming the Unix shell.
|
|
|
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 ...another command obviously. $ t=" -Q \"SELECT curriculum_last_update FROM application_settings\" " + t=' -Q "SELECT curriculum_last_update FROM application_settings" '... more »
|
|
for loop on pair
|
| |
I'd like to be able to iterate over pairs. Something like (pseudo shell script) for i,j in file1,md51 \ file2,md52 \ file3,md53 do compare(md5sum file $i, $j) done Thanks
|
|
Can root see private file
|
| |
Hi, This must be unix 101 question, but it is not easy to find answer. I create and use "chmod 700" command setting a directory and hope to put some self document into it. I suppose there is nobody can check it out except myself. Now I have a question: Is that right even the root user can not enter that directory? But I... more »
|
|
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 ... Furthermore, in my file, line_a and line_b only occur once.... more »
|
|
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 ':' | tr [A-Z\] [a-z/]`... more »
|
|
|