Search Results

Search: Posts Made By: busdude
Forum: Programming 11-01-2010
1,395
Posted By busdude
Checking columns in SQL, comparing user input and sizes.
I'm writing a KSH shell script that's using SQL though DB2.

If I have a table defined and populated

db2 "create table tb(num int,letter char(4))"
db2 "insert into tb values(111,a)
db2 "insert...
Forum: Programming 03-25-2010
23,836
Posted By busdude
getting the pid of another C program with unix calls
I have a C program called server.c which is supposed to get the pid of another program, client.c, and send a signal to it, but I'm not sure how to do it. Server.c is first run in the background then...
3,840
Posted By busdude
Finding a string in a text file and posting part of the line
What would be the most succinct way of doing this (preferably in 1 line, maybe 2):
searching the first 10 characters of every line in a text file for a specific string, and if it was found, print...
5,946
Posted By busdude
putting grep -c results number in a variable
I want to display "no results found" if a grep search of a name that the user inputs is not found anywhere in a certain file,

Right now I have this, but doesn't seem to work. Im not sure what to...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy