10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Members,
I'm confused with grep -F option. Goal is to get all the lines from file2 that have exact gene name from gene list (file one).
File one has list of genes:
File two has lot more information pertinent to genes in file one:
I use three following commands:
1)
grep -wf gene... (9 Replies)
Discussion started by: genome
9 Replies
2. UNIX for Advanced & Expert Users
Hi Guys,
I am regular Solaris user. I came across a weird problem that puzzled me. Hope you guys can help. I found that process's state(command & arguments) in two different variants of ps command is different. Can anyone explain how is this possible?
bash-3.2$ ps -eLo pid,s,comm,args |... (2 Replies)
Discussion started by: brij123
2 Replies
3. 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
4. Shell Programming and Scripting
Hello;
Am trying to correct the formatting of tail output over ssh.
Using the following code:
echo "" > $FILE
for BOX in $SERVERS
do
echo "Processing on $BOX" |tee -a $FILE
echo "===============================" >> $FILE
sudo ssh $BOX 'TERMINAL="vt100" /usr/bin/sh -s' <... (2 Replies)
Discussion started by: delphys
2 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to write a script to download RedHat's errata digest.
It comes in a txt.gz format, and i can get it easily with firefox.
HOWEVER: output is VERY strange when donwloading it in a script. It seems I'm getting a file of the same size - but partially text and partly binary! It... (5 Replies)
Discussion started by: jstilby
5 Replies
6. Shell Programming and Scripting
This script is giving weird output
#!/bin/bash
NETPATH=(`/bin/traceroute -n 4.2.2.2 | awk '{print $2}'`)
for i in "${NETPATH}"
do
echo $i
done
The output:
to
11.11.11.1
1.1.1.1
99.111.208.2
traceroute_test.sh
traceroute_test.sh (7 Replies)
Discussion started by: thumbs
7 Replies
7. Shell Programming and Scripting
My script-
result=""
times()
{
echo "inside the times function"
result=8
echo "Inside function $result"
return $result
}
result=$(times)
echo "the value is "$?
echo "the value of result $result"
when I run I get this, why the value still remain 0.
$ ./func
the value is 0
the value... (5 Replies)
Discussion started by: boy18nj
5 Replies
8. Shell Programming and Scripting
hi all,
have a ksh script which connects to a database and runs a sql and dumps it to a '.csv' file. The problem is the result is in multiple rows with long spaces in between when it should be just a single line and this screws up the format in the '.csv' file.
script is :
#!/bin/ksh... (1 Reply)
Discussion started by: cesarNZ
1 Replies
9. Shell Programming and Scripting
#!/bin/bash
INPUT=$1
if
then
INPUT=0$1
TRACKNUMBER=$INPUT
fi
TRACKNUMBER=$INPUT
echo "Track Number:" $TRACKNUMBER
if
then
echo "File Does Not Exist!: split-track"${TRACKNUMBER}".wav"
exit 0
fi
CUEFILE="$2" (6 Replies)
Discussion started by: TinCanFury
6 Replies
10. AIX
just setup a new system today - 9117 570, using HMC for console but not partitioned.
I installed this system twice. the first time it started off as 5300-00, then updated to ML03. before the update, I believe I mirrored the rootvg, and then altered the bootlist, at that point, the display was... (4 Replies)
Discussion started by: davew1099
4 Replies
news(1) General Commands Manual news(1)
NAME
news - Writes system news items to standard output
SYNOPSIS
news [-a|-n|-s] | [item...]
The news command keeps you informed of news concerning the system.
OPTIONS
Displays all news items, regardless of the currency time. The currency time does not change. Reports the names of current news items
without displaying their contents. The currency time does not change. Reports the number of current news items without displaying their
names or contents. The currency time does not change.
DESCRIPTION
Each news item is contained in a separate file in the /usr/news directory. Anyone having read/write permission to this directory can cre-
ate a news file.
If you run the news command without any options, it displays the current files in /usr/news, beginning with the most recent. You can also
specify the items you want displayed.
Each file is preceded by an appropriate header. To avoid reporting old news, news stores a currency time. The news command considers your
currency time to be the modification time of the file named $HOME/.news_time. Each time you read the news, the modification time of this
file changes to that of the reading. Only news item files posted after this time are considered current.
Pressing the Interrupt key sequence during the display of a news item stops the display of that item and starts the next. Pressing the
Interrupt key sequence again ends news.
Most users run news each time they log in by including the following line in their $HOME/.profile file or in the system's /etc/profile:
news -n
EXAMPLES
To display the items that were posted since you last read the news, enter: news To display all the news items, enter: news -a | pg
This displays all the news items a page at a time, regardless of whether you have read them yet. To list the names of the news
items that you have not read yet, enter: news -n
Each name is a file in the /usr/news directory. To display specific news items, enter: news newusers services
This displays news about newusers and services, which are names listed by news -n. To display the number of news items that you
have not read yet, enter: news -s To post news for everyone to read, enter: cp schedule /usr/news
This copies the file schedule into the system news directory ( /usr/news) to create the file /usr/news/schedule. To do this, you
must have write permission for /usr/news.
FILES
System profile. News files. Indicates the last time news was read.
SEE ALSO
Commands: pg(1)
news(1)