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
ppmtosixel(1)                                                 General Commands Manual                                                ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy