Search Results

Search: Posts Made By: Joey12
1,114
Posted By Joey12
thanks for your help. I am still having...
thanks for your help.

I am still having trouble with the first sql statement I have posted. When I use that one it won't work, but when I take all the rownum references out of my statement it...
1,114
Posted By Joey12
php to perl help
Hey guys,

I have some php code that I am trying to convert to perl code and I am having some probelms. I am posting my php to show what I am having difficulty converting. I know all the $_GET's...
1,066
Posted By Joey12
help with perl database printing
Hey guys i am using perl and trying to pull a list of books from a database and then populate the list in a separate TT2 file. When the list is generated there should be 39 book names. When I do the...
Forum: Programming 12-12-2010
1,377
Posted By Joey12
Here are the variable definitions. int...
Here are the variable definitions.


int i=0,k=0,counter=0,l=0,account,j=0;
char type,choice,name[NUMBS+1][NUMBS+1],mainname[NUMBS+1][NUMBS+1];
int accountnumb[ACCOUNTS];
double...
Forum: Programming 12-10-2010
1,377
Posted By Joey12
segmentation problem with file
Hey guys I am reading a file in c that has a record like this:

1002:credit card:c:500.000000
2002:cred:d:200.000000

I am trying to read the file like this but I am getting a segmentation...
2,774
Posted By Joey12
thanks for the quick response. So should the code...
thanks for the quick response. So should the code look something like this:



if [ $# != 1 ]
then
echo "Usage: saferm -l (or a filename)" >&2
exit 1
fi



if [! -d...
2,774
Posted By Joey12
script similar to rm utility
1. The problem statement, all variables and given/known data:

saferm is a replacement for the rm utility. Rather than removing files, it move files in a sub directoy called".saferm" in the user's...
1,331
Posted By Joey12
dirpath script using sed
Hey guys,

I have to make a script that will show a formatted listing of permissions of a directory, and of all the directories in its path, starting from the root directory. It should...
7,685
Posted By Joey12
does this go inside the for loop?
does this go inside the for loop?
7,685
Posted By Joey12
script that looks for .old extension
Hey guys I have to make a script that takes one argument, the name of a directory, and adds the extension ".old" to all visible files in the directory that don't already have it.

I made...
3,272
Posted By Joey12
so like this? for file in $(ls -a $2) ...
so like this?

for file in $(ls -a $2)
do
if [ ! -e $1/$file ]
then
(cd $2)
(ls -ld $file)
fi
done

if so now it says this:

ls:...
3,272
Posted By Joey12
so from this for file in $(ls -a $2) ...
so from this


for file in $(ls -a $2)
do
if [ ! -e $1/$file ]
then
cd $2
ls -ld $file
fi
I have to get into my $PWD then cd in $2? If...
3,272
Posted By Joey12
thanks that worked, now my program runs perfectly...
thanks that worked, now my program runs perfectly using absolute pathnames. But when I run the script like this it doesnt work.

cd ~/user/120/dir1(I go into this directory)
dircompare ....
3,272
Posted By Joey12
thanks for all your help. I had been listing my...
thanks for all your help. I had been listing my files like this


for file in $(ls -a $2)
do
if [ ! -e $1/$file ]
then
ls -ld $2/$file
fi
...
3,272
Posted By Joey12
ok thanks for your help. Just still one thing I...
ok thanks for your help. Just still one thing I am not grasping. is in my directoy I can execute the script, which is called "dirfile".

so when I go dirfile test test2
(test and test2 are...
3,272
Posted By Joey12
I have the premission it just says that it is not...
I have the premission it just says that it is not found.

error cnf not found that command.
3,272
Posted By Joey12
This is how I am outputting the files and it is...
This is how I am outputting the files and it is listing them with the name of the directory and the file name and I just want it to list the file.

Second I would like to no how I can make it run...
1,233
Posted By Joey12
running script in multiple locations
Hey guys I have written a bash script that compares two directories and displays the files that are different in the directories. Now my problem is the script only runs in my home directory. What do...
3,272
Posted By Joey12
i am very new to unix and this is actually the...
i am very new to unix and this is actually the first script I have written. I am trying to run the script in multiple directories but it will only let me run it in my home directory. Is there any way...
3,272
Posted By Joey12
Listing files script
hey guys I am writing a bash script that compares 2 directories and lists the contents that are different in each directory. I have figured out how to do this but the only problem is that it lists...
Showing results 1 to 20 of 20

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