02-02-2011
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in
this forum under
special homework rules.
Last edited by Scott; 02-02-2011 at 03:24 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having trouble with the following commands
i. count the number of lines which end in a 4 letter word
grep '{4\}$' bfile <<seems to print out everything
abc abc abcd
joe joe john
bob bill
gregory greg
greg gregory
the grep command prints out the lines with 4 letter words and the... (3 Replies)
Discussion started by: StrengthThaDon
3 Replies
2. Shell Programming and Scripting
Hi All,
Reference to my previous post
I need to compare all the lines in the file1 with file2
for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date.
need output in file3
10/04/2008
09/04/2008
09/04/2008
08/04/2008
can anyone suggest me
Thanks... (0 Replies)
Discussion started by: karthikn7974
0 Replies
3. Shell Programming and Scripting
Hi,
I need to know the difference between this commands:
grep * *search*
grep "*" *search*
As far as i know does the 2nd command search for files which have a name with *search* and greps then all which have chars from a-z in the file content.
But was does the first command??
Best... (1 Reply)
Discussion started by: xus
1 Replies
4. Shell Programming and Scripting
Hey im new in this...anything will be helpful...
The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user.
Example:
file1.txt
=======
a
aa
aaa... (2 Replies)
Discussion started by: Sundown
2 Replies
5. Shell Programming and Scripting
I have these grep commands and need to put them next each other (in horizontal layout).
cat /tmp/dsmc.out |grep Done
cat /tmp/dsmc.out |grep "Elapsed processing time:"
cat /tmp/dsmc.out |grep "Client date/time:"
cat /tmp/dsmc.out |grep "Total number of bytes transferred:"
so that it... (6 Replies)
Discussion started by: Daniel Gate
6 Replies
6. Shell Programming and Scripting
Hi all,
I have two separate commands which I would like to join. Basically, I want to match a line and insert a character at the end of the previous line to the matched line
Here is what I have gotgrep -B1 '^>'
sed 's/$/*/'
Any help is much appreciated thanks (5 Replies)
Discussion started by: kaav06
5 Replies
7. Shell Programming and Scripting
I have a text file that has multiple lines in it with multiple dates and years. I was trying to figure out the best way to remove the line that had 2010 and 2011 to an archive file. We only need to keep the 2012 and 2013 lines in the original file. The following is a sample line in the txt file:... (2 Replies)
Discussion started by: smkremer
2 Replies
8. Shell Programming and Scripting
Oracle Linux 6.4/Bash shell
I have six files as shown below. Using ls/grep (or anything) , I need to list all files which start with the pattern stomper but not the ones
which ends with 1.
$ touch stompera
$ touch stomperb
$ touch stomperc
$ touch stompera1
$ touch stomperb1
$ touch... (7 Replies)
Discussion started by: kraljic
7 Replies
9. Homework & Coursework Questions
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:
Use the less command to view the words file.
To see the results of a grep that returns many rows, pipe the... (3 Replies)
Discussion started by: asaint
3 Replies
10. UNIX for Beginners Questions & Answers
Hi everyone,
I have a question, please help me.
awk -F: '$3<75' /etc/passwd
grep -ir nashorn ./ | grep "^*\.java"
what do these commands do ? Thanks (2 Replies)
Discussion started by: burak171
2 Replies
LEARN ABOUT SUSE
httppower
httppower(8) powerman httppower(8)
NAME
httppower - communicate with HTTP based power distribution units
SYNOPSIS
httppower [--url URL]
DESCRIPTION
httppower is a helper program for powerman which enables it to communicate with HTTP based power distribution units. It is run interac-
tively by the powerman daemon.
OPTIONS
-u, --url URL
Set the base URL.
INTERACTIVE COMMANDS
The following commands are accepted at the httppower> prompt:
auth user:pass
Authenticate to the base URL with specified user and password, using ``basic'' HTTP authentication which sends the user and password
over the network in plain text.
seturl URL
Set the base URL. Overrides the command line option.
get [URL-suffix]
Send an HTTP GET to the base URL with the optional URL-suffix appended.
post [URL-suffix] key=val[&key=val]...
Send an HTTP POST to the base URL with the optional URL-suffix appended, and key-value pairs as argument.
FILES
/usr/sbin/httppower
/etc/powerman/powerman.conf
ORIGIN
PowerMan was originally developed by Andrew Uselton on LLNL's Linux clusters. This software is open source and distributed under the terms
of the GNU GPL.
SEE ALSO
powerman(1), powermand(8), httppower(8), plmpower(8), vpcd(8), powerman.conf(5), powerman.dev(5), powerman-devices(7).
http://sourceforge.net/projects/powerman
powerman-2.3.5 2009-02-09 httppower(8)