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
GPE-QUESTION(1) gpe-question GPE-QUESTION(1)
NAME
gpe-question - GPE interface for asking questions from shell scripts.
SYNOPSIS
gpe-question [---icon] name {--question "Question text"} {--buttons icon1:text1} [icon2:text2 ...]
DESCRIPTION
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.
gpe-question provides dialogues to raise a question within the GPE Palmtop Environment with cancel and ok buttons.
OPTIONS
--question STRING
The question to ask the user via the dialogue.
--buttons type:label
The type and label of the button(s) to be shown. Repeat for additional buttons.
EXAMPLES
gpe-question "test" --question "Do you want to check first?" --buttons YES:yes NO:no
AUTHOR
This manual page was written by Neil Williams <codehelp@debian.org> for the Debian(TM) system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
AUTHOR
Moray Allen
Author.
COPYRIGHT
Copyright (C) 2007 Neil Williams
Debian 1 January 16, 2007 GPE-QUESTION(1)