True enough. man pages are your friend. As stated previously, might as well start at the start.
. You can scroll with the up and down arrows on your keyboard.
For instance, I have two terminal windows open as I experiment with your problem. One I'm using for a man page, so I can look at it frequently and easily. The other I'm issuing commands in, to replicate the problem and experiment with finding a solution.
Sometimes man pages are a bit confusing to look at, or not "entirely" helpful from a new user's perspective. It depends on the command you are looking up, really. You found a good place here, as people want to help.
For instance,
has examples of usage at the bottom, one of which is how to find lines in a file (named "myfile") that do NOT contain the words "foo" and "bar".
Check out the examples and scroll back up in the man page to see which grep options in those examples do what.
You could with some study of the man page for grep, figure out how to find lines that DO contain the words "foo" and "bar".
When using any search tools, try to be as general as possible to start, and refine as needed after seeing the results.
In your example text, evaluate what is a unique value for each of the lines you want returned.
Hi All,
I want to send the csv to an email address.
I have tried the below two approaches.
Approach1: Got error -ksh: uuencode: not found
$ uuencode test_file.csv test_file.csv | mailx -s "Attaching test" msdc.kiran@gmail.com </usr/home/test_file.csv
-ksh: uuencode: not found
Approach2:... (6 Replies)
Hi Team,
Not getting the file output inside my email which i am sending from unix box. . Please refer the below code :
#!/bin/sh
{
sleep 5
echo ehlo 10.56.185.13
sleep 3
echo mail from: oraairtel@CNDBMUREAPZP02.localdomain
sleep 3
echo rcpt to: saurabhtripathi@anniksystems.com... (1 Reply)
Hi,
I need to display specific columns using select statement and spooled to a file and sending it as e-mail. But i am not seeing column header in my output even i use SET HEADING ON.//PREDEFINED LOGIN DETAILS
${ORACLE_HOME}/bin/sqlplus -s ${DB_LOGIN}/${DB_PASSWD} <<EOF
SET FEEDBACK OFF
SET... (1 Reply)
Hi guys !
I generated the power set of the set S={a,b,c} using crunch:
crunch 1 3 abc
and get the 39 possible subsets:
a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
… (2 Replies)
Hi everyone,
I have UNIX this semester and I am just getting started with the commands. An interesting question came up while discussing the head and tail commands.
Suppose that I have text file with the following data in the following format-:
NAME ROLL MARKS
Sam 05 ... (2 Replies)
i have a input of csv file as below but the sequence of column get changed.
I,e it is not necessary that name comes first then age and rest all, it may vary.
name,age,marks,roll,section
kevin,25,80,456,A
Satch,23,56,789,B
Meena,24,78,H245,C
So i want to print that column entires which... (12 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Using the fixed length field file called famous.dat make a one-line Unix command - using pipe(s) - to display an... (5 Replies)