10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
One my friend wrote one script on his machine linux, when I try to use it under cygwin I recive one error about the command awk. Is there someone can suggest me the way to fix the error? The script is wrote using gawk and I have no idea what kind of comand is used by cygwin.
This is the script:... (8 Replies)
Discussion started by: Tapiocapioca
8 Replies
2. Shell Programming and Scripting
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
3. Shell Programming and Scripting
I have set up a bash script to run a long list of things that I need to time. I would like to redirect the output of time to a file. I have set it up like,
echo "Runtimes for servlet 4, 100K structures" > test_times.txt
echo "" >> test_times.txt
echo "runs where N=10" >> test_times.txt
echo... (7 Replies)
Discussion started by: LMHmedchem
7 Replies
4. Shell Programming and Scripting
Hi, although I am not expert in bash, so please forgive me if this is silly, I think that this is strange:
I have this command:
find . -type f -print0 |xargs -0 grep -i -e 'some rexp'
and it works fine. But when I create a bash script (on cygwin) to run this command, there is no output !!!... (3 Replies)
Discussion started by: Niki999
3 Replies
5. Shell Programming and Scripting
Hello,
In my make file (make 3.81), I use a combination of shell commands to automatically create the name of my build directory.
OS := $(shell uname -s)
ARCH := $(shell uname -m)
KERN := $(shell uname -r | cut -d. -f 1,2)
BDIR := $(OS)_$(KERN).$(ARCH)When I boot into different OSs, I... (7 Replies)
Discussion started by: LMHmedchem
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have installed CYGWIN software in my system, can anyone suggest me how to run cat command in this software ?
when i attempt to execute this command-
$ cat /cygdrive/c/Program\Files/hello.txt.
Result: No such file or directory.
Please let me know how to execute.
Regards,
Kiran. (1 Reply)
Discussion started by: Kiran S
1 Replies
7. Windows & DOS: Issues & Discussions
How do I change my command line to the standard appearance? (i.e.: The pwd is listed in green above the actual command line).
Mine looks like http://sites.google.com/site/flcl178/Cygwin_Window_1.png
and I want it to look like this http://sites.google.com/site/flcl178/cygwinLinkSetup.gif
... (2 Replies)
Discussion started by: LanguidLegend
2 Replies
8. Windows & DOS: Issues & Discussions
Hi,
I have installed cygwin on my windows XP system. And I am trying to use the following code snippet:
set SERVER="grep JDBCConnectionPool config.xml | gawk -F; '{print $2}'"
sed -i 's/%SERVER%/WLMDEVDB1/' config.xml
But it doesn't work because at runtime %SERVER% gets replaced by "grep... (2 Replies)
Discussion started by: illcar
2 Replies
9. UNIX for Dummies Questions & Answers
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
7 Replies
10. UNIX for Dummies Questions & Answers
I am new to unix and lerning tru cygwin (unix simulation on windows)
i am trying to lern sed command and want to interchange first and second no in a string. What i mean is
i want gauri 1234 556 to gauri 556 1234
i am getting the following error
$ echo gauri 1234 556 | sed s/\(*\)... (2 Replies)
Discussion started by: gauri_agr
2 Replies