10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
2. HP-UX
Hello folks,
I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file.
Anybody knows how can I change the output to not have this extra tabulations?
Thanks in advance! (10 Replies)
Discussion started by: carpannav
10 Replies
3. Shell Programming and Scripting
Hi,
I'm on AIX 5.2. I wrote a script that makes a traceroute to a host. The script works fine but each time it using the traceroute command its generate the 2 output lines.
this is the command in my script
traceroute -n -m 5 -w 2 $Host | grep 172 | awk '{print $2}' | tail -1
traceroute... (2 Replies)
Discussion started by: ce9888
2 Replies
4. Shell Programming and Scripting
hi Gurus,
I need separate a file which is one huge line to multiple lines based on certain number of charactors. for example:
abcdefghi high abaddffdd
I want to separate the line to multiple lines for every 4 charactors.
the result should be
abcd
efgh
i hi
gh a
badd
ffdd
Thanks in... (5 Replies)
Discussion started by: ken6503
5 Replies
5. Programming
Hi, could you please help with the following:
I have an input file like:
one
two
three
four
five
six
I want to print the lines starting from 'three' to the empty line.
Something like that:
if ( line == "three" )
{
while ( !line.empty() )
{
cout <<... (0 Replies)
Discussion started by: apenkov
0 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to write a shell script but not getting desired output.
What i am trying to do.
1.I want to use find command command and then use it xargs/exec to append the find output.But i am not getting desired output
here is what i am trying to do
#find init*.ora -exec `echo... (4 Replies)
Discussion started by: sahil_shine
4 Replies
7. UNIX for Dummies Questions & Answers
Hello board members.. here i am and here is my question.
OS HP-UX
awk
i have a file where the FS is the pipe (|).
So i choose the second field and i would like to do the following:
If this filed is 0 then, i need the line in file1.txt
Else write the line in file2.txt
cat testfile.txt |... (2 Replies)
Discussion started by: kiko
2 Replies
8. Shell Programming and Scripting
Hi,
I have a line which has n number of words with separated by space.
I wanted to make each word as a separate line.
for example,
i have a file that has line like
i am a good boy
i want the output like,
i
am
a
good (8 Replies)
Discussion started by: rbalaj16
8 Replies
9. Shell Programming and Scripting
Hi all
Is there a way to read and process a gzip file line by line similar to a text file without using gzcat..
while processing a text file we will usually use the logic
exec<sample.txt
while read line
do
echo $line
done
Is there a similar way to process the gz file in the same... (4 Replies)
Discussion started by: aikhaman
4 Replies
10. Shell Programming and Scripting
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies
PURITY-NG(6) Games Manual PURITY-NG(6)
NAME
purity-ng - general purpose purity testing software
SYNOPSIS
purity-ng [OPTION]... list|FILE|TESTNAME
DESCRIPTION
Purity is an interactive purity test program with a simple, user interface and datafile format. For each test, questions are printed to
the your terminal, and you are prompted for an answer to the current question. At a prompt, these are your choices:
y Answer "yes" to the question.
n Answer "no" to the question.
b Backup one question, if you answered it incorrectly, or someone is watching you take the test, and you don't (or do) want to admit a different answer.
s Print your current score on the test you are taking.
q Quit the test, and print the current score.
? Print a help screen for the current prompt.
At the end of the test, your score is printed out. For most purity tests, lower scores denote more "experience" of the test material.
OPTIONS
--version
print current version of purity-ng
-h, --help
show the help message and exit
-p print the test without prompting for answers.
-r decrypt the test using the Rot 13 algorithm.
To get a list of all purity tests available globally on your system, run purity-ng list.
AUTHORS
purity was originally written by Eric Lechner in 1989. purity-ng is a reimplementation of purity in Python for modern systems, written by
Simon Fondrie-Teitler and Luke Faraone.
This manual page was written by Luke Faraone.
BUGS
If you find bugs in the application, please report these to <https://bugs.launchpad.net/purity-ng> or to your distribution's distributor.
SEE ALSO
purity(6)
Running purity-ng format provides documentation about the datafile format.
Additional documentation is available online at <http://packages.python.org/purity-ng>.
January 7, 2011 PURITY-NG(6)