02-17-2004
Heedunk, looking at your questions thus far, either you're learning unix on your own and are new at it or you're posting homework assignments. If it's the former, then welcome to the world of unix!
If it's the latter, then the code I put will probably be too advanced to turn into a teacher anyway... follow Norsk's logic to come up with a way.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
when i want to go to previous directory by typing cd.. i get the following message
$ cd..
ksh: cd..: not found
Please help
rintingtong (2 Replies)
Discussion started by: rintingtong
2 Replies
2. HP-UX
Good Day
I mistakely renamed the dld.sl file in the /usr/lib directory. When i try to ls/ftp into the box i get this error :eek:
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002
I have tried to rename it back from the renamed file to the original file name, but it gives me the... (2 Replies)
Discussion started by: shawnbishop
2 Replies
3. UNIX for Dummies Questions & Answers
When trying to copy a file in Solaris 8 it doesnt copy file or give a error. This worked 100% until the 29th. I've checked the rights and everything seems fine:
drwxrwxrwx 2 bmuser bmgroup 11776 Jan 3 10:32 spool
This is the file I want to copy:
-rwxrwxrwx 1 bmuser bmgroup ... (26 Replies)
Discussion started by: rudi.okelly
26 Replies
4. Red Hat
Hii All,
I am using openldap v2.3 on redhat El-4. When i run ldapsearch it returns all the entries. The command runs successfully. But when I run the ldapsearch with following filter option it doesnt work and immediately returns to the shell.
ldapsearch uidNumber>=2000
I've started slapd... (0 Replies)
Discussion started by: shamik
0 Replies
5. Shell Programming and Scripting
Hi,
I have a script which does a tar and sends it to another server as backup.
Script is as below
# Locations to be backed up. Seperate by space
BACKUP_LOCATIONS=/repos/subversion
BACKUP_BASE_FOLDER=/bakpool
BACKUP_FILE_NAME_ROOT=svn-backup
START_TIME_DISP=`date`
START_TIME=`date... (11 Replies)
Discussion started by: digitalrg
11 Replies
6. Shell Programming and Scripting
It just does the break...even though the files are not the same...
# Compare extracts
#==========================================
count=0
while (( count < 5 ))
do
(( count+=1 ))
echo "Try $count"
file1=$(ls -l /tmp/psjava.xml|... (5 Replies)
Discussion started by: sigh2010
5 Replies
7. Shell Programming and Scripting
this is my file I have written.
// My first C++ program
#include <iostream>
int main()
{
std::cout << "Hi there!" << std::endl";
std::cout << "This is my first C++ program" << std::endl";
return(0);
}
This is the error I get, why?
$ g++ first.cpp
ksh: g++: not found (1 Reply)
Discussion started by: gustave
1 Replies
8. AIX
Hi Guys,
I have a strange problem.( AIX 6.1) "vi" is not working at all..Whenever i #vi <anythin> ,, it returns the prompt back. Any clues folks?? (14 Replies)
Discussion started by: muzahed
14 Replies
9. UNIX for Dummies Questions & Answers
I am trying to print out two fields in a file using awk. So, I have got
awk -F '\t' 'NF = 2 {print $1 $2 "]"}' two.txt
in a script called what.awk
When i run this version like this - ./what.awk then it runs however I want to run the program like this
awk -f what.awk two.txt.
When I... (8 Replies)
Discussion started by: The undertaker
8 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
i created the below script to move file with xml extension from one directory to another,but the mv command is not working inside the shell script,
#!/us/bin/ksh
filepath="/apps/extract"
filename="*.xml"
foldername=2191POB000_$(date +%Y%m%d%H%M%S)
mkdir -p "$filepath/$foldername"... (3 Replies)
Discussion started by: Radhas
3 Replies
LEARN ABOUT DEBIAN
turnin
TURNIN(1) General Commands Manual TURNIN(1)
NAME
turnin - submit assignments to be graded
SYNOPSYS
turnin [ OPTIONS ] -c [ course-name ] files
DESCRIPTION
Submits assignments to be graded. We submit to the default project if it is not specified as an option.
REQUIRED ARGUMENTS
-c, --course
Sets the course to which we'll submit our assignments.
files A list of files we wish to submit. They will be compressed using tar(1) and gzip(1) formats before being copied to the submission
directory.
OPTIONS
--version
Print turnin's version
-h, --help
Print a help message
-l, --list
Prints a list of projects, along with whether or not they are enabled and shows which project is the default project.
-p, --project
Sets the project to which we'll submit our assignments.
-C, --config
Path to an alternate configuration file
-v, --verbose
Prints a list of submitted files once they have been submitted.
-k, --keyid
Cryptographically signs an assignment using gpg(1)
-w, --legal
Print warranty and license information.
EXAMPLES
turnin -c world-cheeses --list
List the projects in the course world-cheeses.
turnin -c world-cheeses stilton-recipe
Submit the file stilton-recipe to the default project in the course world-cheeses.
turnin -c world-cheeses -p stilton stilton-recipe
Submit the file stilton-recipe to the project stilton in the course world-cheeses.
FILES
/etc/turnin-ng.cf ~/.turnin-ng/submissions
SEE ALSO
turnincfg(1)
The full documentation for turnin is maintained as a Texinfo manual. If the info and turnin programs are properly installed at your site,
the command
info turnin-ng
should give you access to the complete manual.
AUTHOR
Turnin-NG and this manpage were written by Ryan Kavanagh <ryanakca@kubuntu.org> in the summer of 2009 and are still actively maintained.
Turnin-NG is a replacement for the 'project' and 'turnin' commands written in 1990 for the SPARC architecture by an unknown author.
Both Turnin-NG and this manpage are distributed under the terms of the GNU General Public License version 2, or (at your option) any later
version.
Turnin-NG SEPTEMBER 2010 TURNIN(1)