Sponsored Content
Full Discussion: Unix Homework Help needed
Homework and Emergencies Homework & Coursework Questions Unix Homework Help needed Post 302631697 by vaidastf on Friday 27th of April 2012 05:27:58 PM
Old 04-27-2012
Unix Homework Help needed

Code:
1       Petras          Pavardenis      1980            5
08      Linas           Bajoriunas      1970            10
3       Saulius         Matikaitis      1982            2
5       Mindaugas       Stulgis         1990            7
6       Rimas           Nasickis        1964            10
7       Simas           Saulenis        1966            12
8       Justas          Skukauskas      1995            9
9       Petras          Petronkus       1988            3
10      Zanas           Baltraitis      1990            5
11      Mantas          Caraitis         1974            1
12      Edmundas        Butkus          1970            9
13      Mindaugas       Sinkevicius     1945            11
14      Edgaras         Zvironas        1930            8
15      Vaidas          Gaubas          1985            12
16      Gintaras        Gintaitis       1980            5
17      Raigardas       Tautkus         1975            1
18      Darvydas        Tautkevicius    1925            12
19      Tomas           Cereska         1989            4
20      Saulius         Sidlauskas      1984            6
21      Jonas           Jonaitis        1966            8
22      Jonas           Petraitis       1940            12
23      Jonas           Ringys          1970            1
13      Julius          Jonaitis        1974            11

1. The problem statement, all variables and given/known data:
I need GREP command to find the words which start with capital letters A,B,C,D,E,F,G,H,I,J,K in the column 3 (the first word of this column is "Pavardenis") . Not in all columns but just in the third column (as I said earlier the first word of this column is "Pavardenis"). And i must use only GREP command (I cannot use awk or other commands due to my school restrictions).

2. Relevant commands, code, scripts, algorithms:



3. The attempts at a solution (include all code and scripts):
I tried for hours but nof succesfully Smilie


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
I cannot write all important information about my University because I live in Latvia and maybe you will not understand what i said
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix help needed!

I have a few questions about Unix. Can you please help! 1.How do I create an alias that greps the password file for my username and returns my password file entry? Once I get the alias to work I want to be able to let a friend use it .So that he can use the alias to locate his password entry... (1 Reply)
Discussion started by: JJJ
1 Replies

2. UNIX for Dummies Questions & Answers

Unix help needed !!

friends i wanted to now whehter there exists a book as a solution to the questions posted in exercies of the Design of Unix Operating system by Maurice J Bach !..its really urgent !! (1 Reply)
Discussion started by: darshaan
1 Replies

3. Shell Programming and Scripting

unix manual needed :)

hi guys... am new 2 dis unix world... am in need of a unix manual... cud sum1 pls post sum links 2 download it?>?>? :confused: Danks in advance... ;) ;) ;) (1 Reply)
Discussion started by: sundar_shankar
1 Replies

4. UNIX for Dummies Questions & Answers

Help needed in Basic UNIX

hi friends, How to obtain list of groups we r a member of and redirect it to a file. how to append the details of current OS to a file. how to append the estimated file space to a file. how to append the details of users loged on along wth their current activity into a file. Thank you...I'm... (3 Replies)
Discussion started by: bobby36
3 Replies

5. Shell Programming and Scripting

Help Needed in Unix Script

Hi, I have multiple servers and each server hosts multiple databases. Now i have requirement as below 1) Create a file in any server which will hold all the database name. 2) Write a shell script that will read the file and connect to each and every database. and log out of it one by... (2 Replies)
Discussion started by: amritansur
2 Replies

6. Shell Programming and Scripting

Linux unix help (homework, closed)

i have to do this but i am confused, Create a file containing the bash functions which perform the following tasks. Clearly label each function. Print out and turn in this file. 1.Write a function which displays the current date, time, username, and current directory. ... (1 Reply)
Discussion started by: CRAZYLITTLELOU
1 Replies

7. Shell Programming and Scripting

Unix Scripting Question (Homework)

Hello im currently taking up Operating Systems and we're on unix ryt now. we have to make a script and here are the requirements.. can someone please help me. I would reli appreciate it.. because i dont reli know how to make scripts yet. Name of script : parkingcharge.sh Create a script that... (1 Reply)
Discussion started by: pitdark
1 Replies

8. Homework & Coursework Questions

Sort function -- My First Unix Homework!

1. The problem statement, all variables and given/known data: To sort a data 2. Relevant commands, code, scripts, algorithms: The data provided is saved in dummy.txt and provided in LIBSVM format, but I think this information is redundant.. +1 1:2 2:4 4:3.2 -1 2:2.1 2:2.1 ... (4 Replies)
Discussion started by: eeweepoh
4 Replies

9. Homework & Coursework Questions

Unix Homework Help Needed

#!/bin/sh #Buddy Gibbons #COP3353 - Assignment 4 #4/21/12 file=$1 directories=0 files=0 rfiles=0 xfiles=0 wfiles=0 if then echo "Usage: assignment4.sh <directory_name>" exit fi (1 Reply)
Discussion started by: tennistennis1
1 Replies

10. UNIX for Beginners Questions & Answers

Linux / UNIX (Homework)

My task is to modify the command line cat -n /etc/fstab | grep and after grep, filter to only show line 7. I can't use sed awk or any other command, only grep (1 Reply)
Discussion started by: taurus1992
1 Replies
COLRM(1)						    BSD General Commands Manual 						  COLRM(1)

NAME
colrm -- remove columns from a file SYNOPSIS
colrm [start [stop]] DESCRIPTION
The colrm utility removes selected columns from the lines of a file. A column is defined as a single character in a line. Input is read from the standard input. Output is written to the standard output. If only the start column is specified, columns numbered less than the start column will be written. If both start and stop columns are spec- ified, columns numbered less than the start column or greater than the stop column will be written. Column numbering starts with one, not zero. Tab characters increment the column count to the next multiple of eight. Backspace characters decrement the column count by one. ENVIRONMENT
The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of colrm as described in environ(7). EXIT STATUS
The colrm utility exits 0 on success, and >0 if an error occurs. SEE ALSO
awk(1), column(1), cut(1), paste(1) HISTORY
The colrm command appeared in 3.0BSD. BSD
August 4, 2004 BSD
All times are GMT -4. The time now is 11:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy