unix

how to Enter data from keyboard in shell programming

how to Enter data from keyboard in shell programming ? some command similar to scanf in c ...

how to create a array in unix shell programming

how to create a array in unix shell programming ? and i have to excute the program still i press a key similar to do u want to continue option ...

Can mysql-database save strings casesensitive, like UNIX?

Is it possible to store "Filename" and "filename" in a mysql-database? ...

Unix Find Replace Special Characters in Multiple Files

I've got a set of files in a web root that all contain special characters that I'd like to remove (Â,€,â,etc). My command find . -type f -name '*.*' -exec grep -il "Â" {} \; finds & lists out the files just fine, but my command find . -type f -name '*.*' -exec tr -d 'Â' '' \; doesn't produce the results I'm looking for. Any thou...

svn changes my files names

I'm using command line SVN 1.6.5 on my Ubuntu 9.10. This is my first time using it on the latest Ubuntu, I found svn confused about file names. The problem was as follow: I firstly used sudo svn co http://my-repository/h2m h2m after successfully checkout these files, I immediately used svn st and found dean@notebook:~/FAT32/h2m$ s...

List of open-source "stuff" that every web developer should know about.

These are some of the things that every web developer should know when building a web app. This tools will save everyone lots of time. Tools like "memcached" and "beanstalkd" are super dead simple and provides lots of value. If someone could list their simple yet effective tools in this list, it would be good. I'll make this community...

how to create a database btable from unix shell?

how to create a database btable from unix shell? and how to access the contents of the data table or to add to the table. can i create a table in ms-acces and use it throug shell? or please sugest some e-books or sites to refer ...

How to find the array length in unix shell?

How to find the array length in unix shell? ...

What is wrong in this code

Here i have got various inputs from keyboard and checked these validations Book_id must be unique. Subject code can only be either UNIX or C.The Shelll i work is bash i got the following errors ./test.sh: line 5: declare: `=0': not a valid identifier /test.sh: line 13: unix: command not found ./test.sh: line 92: syntax error: un...

Remove page numbers from man pages in Solaris?

When I use Solaris, I get page numbers every 60 lines or so that look like this SunOS 5.11 Last change: 10 Feb 2009 1 Also, I get headers like User Commands ls(1) Is there any way to remove them? It's distracting to have them appear when I'm reading text line by line. ...

How to send EOF to Python sys.stdin from commandline? CTRL-D doesn't work.

I am writing to my Python process from the commandline on unix. I want to send EOF (or somehow flush the stdin buffer, so Python can read my input.) If I hit CTRL-C, I get a KeyboardError. If I hit CTRL-D, the program just stops. How do I flush the stdin buffer? ...

COFF on Linux or ELF on Windows

Is it possible to run the COFF executable files on UNIX or the ELF executable files on Windows? And what would be the steps to be able to run either file type on Windows and UNIX. I'm just curious. ...

Tools for Unix <-> Windows C++ development

I am doing some C++ cross development - been doing that for a while on Windows and recently started on Unix. I suppose what I am after is to simplify Unix development experience - I have a local windows box I do development on, and a remote Solaris box which I use to compile and test code on unix environment. What I do now - I develop...

Problem with for loop in shell

Hi, I getting space delimited list of titles based on this code: TITLES=`awk -F'|' '{print $1}' titles.txt | cut -d'=' -f2 | sort Then I use that list in a for loop to print out the results: for T in $TITLES do echo "$T" done The problem is that when a title has more than one word and the words are separated by a space then m...

Which Unix flavour do I need? J2EE application using IBM tools?

I want to try Unix for developing J2EE application. I use the IBM software. WASCE as application server DB2 Express-C as database. Eclipse Which Unix flavour will be most suitable for me? ...

find and replace in multiple files on command line

How do i find and replace a string on command line in multiple files on unix? ...

why redirecting to same file results in a empty file in unix

Hi, if i redirect to same file it places null in the resultant file. sed 's/abd/def/g' a.txt > a.txt i know it put null in to the file. But can anyone explain why? ...

Executing server-side Unix scripts asynchronously

We have a collection of Unix scripts (and/or Python modules) that each perform a long running task. I would like to provide a web interface for them that does the following: Asks for relevant data to pass into scripts. Allows for starting/stopping/killing them. Allows for monitoring the progress and/or other information provided by the...

Understanding the UNIX command xargs

I'm pretty much confused on this. Need some clarifications. Example 1 : pgrep string | xargs ps Example 2 : find . | xargs grep whatever From Example 1, I gather it's this way: Search for a "string" which is part of name of running process and return the process-ids of all the matches to 'xargs ps' -> which just appends ps to the...

getopt implicit declaration in Solaris?

In Solaris, gcc gives me implicit declaration of function `getopt' when compiling #include <unistd.h> #include <stdlib.h> int main(int argc, char *argv[]) { getopt(1,argv,""); return 0; } The man page for getopt says something about including unistd.h or stdio.h, however even though I'm inluding both I still get this w...