12-31-2004
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a little awk script which uses a variable (x):
awk -v x=0 'NF != 6 { ++x } END { print "This batch had " x " errors out of ", NR" records"}'
But when I've tried to put the command in a file I can't seem to declare the variable. I've managed to simplify the code so that I... (4 Replies)
Discussion started by: pondlife
4 Replies
2. UNIX for Dummies Questions & Answers
my lecturer want to do an assignment about telnet server..first, he want us to download the telnet server..then he want we do about copy files and share files by using the telnet server....what is that??? and one more thing is how to do 'ping'???? (1 Reply)
Discussion started by: amelia
1 Replies
3. Shell Programming and Scripting
Guys,
Could you please help me out. I need two values in two variables using awk from the o/p of grep.
example:-
grep sdosanjh <filename>
sdosanjh myhostname myfilename
NOW WHAT I WANT IS :-
sdosanjh should be in variable (say NAME)
myhostname should be in variable (say... (8 Replies)
Discussion started by: sdosanjh
8 Replies
4. Shell Programming and Scripting
Dear all,
I want to use awk to read the three columns in a file called "test" and change them to ( 1.5 1.5 1.5) if any element is found to be greater than three. A part of the file is shown below:
(0.478318 0.391032 -0.14054)
(0.45562 0.392523 -0.121685)
(0.437204 0.392811 -0.106158)... (3 Replies)
Discussion started by: mfmohdyasin
3 Replies
5. Shell Programming and Scripting
Hi There,
I am writing a ksh script which assigns variable values from file "A" and passes that variables to file "B". While passing the parameters an additional "$" sign is being assigned to awk -v option.
Could any one help me with this please.
#!/bin/ksh
head -1... (3 Replies)
Discussion started by: Jeevanm
3 Replies
6. Shell Programming and Scripting
So, in awk, I've always put my variable assignments inside of the curly braces, just like dad, and grandpa, and the 26 generations before them. But today I came upon an awk statement that had them outside the braces-- blasphemy!
Seriously, though, is there any practical difference? I was... (3 Replies)
Discussion started by: treesloth
3 Replies
7. Homework & Coursework Questions
Q-1
Write a shell script in Unix that lists files from your current working directory
· By modification time when called with lm
· By access time when called with la.
By default, the script should show the listing of all the files in the current directory.
Q-2
Write a shell script which... (1 Reply)
Discussion started by: Vishank Parikh
1 Replies
8. Shell Programming and Scripting
Hi,
Was hoping someone could help with the following:
while read line; do pntadm -P $line | awk '{if (( $2 == 00 && $1 != 00 ) || ( $2 == 04 )) print $3,$5}'; done < /tmp/subnet_list
Anyone know if it is possible to assign $3 and $5 to separate variables within the {} brackets?
Thanks... (14 Replies)
Discussion started by: CiCa
14 Replies
9. Shell Programming and Scripting
Heyas
Me try to print only the value of a (specific) variable assignment from a file.
What i get (1):
:) tui $ bin/tui-conf-get ~/.tui_rc TUI_THEME
dot-blue
""
"$TUI_DIR_INSTALL_ROOT/usr"
"$TUI_DIR_INSTALL_ROOT/etc/tui"
"$TUI_PREFIX/share/doc/tui"
"$TUI_PREFIX/share/tui"... (2 Replies)
Discussion started by: sea
2 Replies
10. Shell Programming and Scripting
how can i optimize the following:
TOTALRESULT="total1=4
total2=9
total3=89
TMEMORY=1999"
TOTAL1=$(echo "${TOTALRESULT}" | egrep "total1=" | awk -F"=" '{print $NF}')
TOTAL2=$(echo "${TOTALRESULT}" | egrep "total2=" | awk -F"=" '{print $NF}')
TOTAL3=$(echo... (4 Replies)
Discussion started by: SkySmart
4 Replies
xjim(1) General Commands Manual xjim(1)
NAME
xjim - Japanese input server on X Window
SYNOPSIS
xjim [options ...]
DESCRIPTION
xjim is a japanese input server which can connect with application programs through XIM (X Window System, Version11 Input Method) inter-
face.
Options
xjim can accept standard X Toolkit options and the following options.
-learn learn-file Specifies a file for Gakushuu operation. The default is $HOME/.xjim_learn.
-online online-file
Specifies user dictionary for Word registration. The default is $HOME/.xjim_onlud.
-sjis Starts xjim in sjis mode. In sjis mode, Shift-JIS encoding is used.
-euc Starts xjim in euc mode. In euc mode, EUC encoding is used.
Resources
xjim can accept the following resources. Class name is "XJim".
*learnFile Specifies a file for Gakushuu operation.
*onlineFile Specifies user dictionary for Word registration.
*background Specifies background color on xjim's windows.
*foreground Specifies foreground color on xjim's windows.
*geometry Specifyies xjim's main window location.
*modeLocation Specifyies status area's location in the case of "OverTheSpot" Input Style. Possible value is "left" or "right". The
default is "left".
*JISX0212 Specifies whether or not JISX 0212 character set is used in conversion. If True, JISX 0212 characters can be got
through conversion. The default is False. In sjis mode, this resource is ignored.
AUTHOR
xjim was developed by HP.
xjim(1)