10-07-2011
Instead of displaying your command and asking what is wrong with it, it is best
to ask what you want to accomplish.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello experts,
I know line number of the word I want to replace. Can "sed" substitute word on a specific line?
As well, can sed substitute words inside a specific patten.
ex. <word>lalala</word> #replace anything between <word> and </word>
minifish (2 Replies)
Discussion started by: minifish
2 Replies
2. Shell Programming and Scripting
Hi All,
I wanted to know if there is a shell command to print a word n number of times
The Input File is :
Cat 4
Bat 3
Zall 1
Kite 2
Output File required is :
Cat
Cat
Cat
Cat
Bat
Bat
Bat
Zall
Kite (4 Replies)
Discussion started by: sam_2921
4 Replies
3. Shell Programming and Scripting
My source is on each line
98.194.245.255 - - "GET /disp0201.php?poc=4060&roc=1&ps=R&ooc=13&mjv=6&mov=5&rel=5&bod=155&oxi=2&omj=5&ozn=1&dav=20&cd=&daz=&drc=&mo=&sid=&lang=EN&loc=JPN HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR... (5 Replies)
Discussion started by: elamurugu
5 Replies
4. Shell Programming and Scripting
Hi,
Our input xml looks like:
<doc>
<str name="account_id">1111</str>
<str name="prd_id">DHEP155EK</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str name="prd_id">394531662</str>
</doc>
- <doc>
<str name="account_id">6666</str>
<str... (1 Reply)
Discussion started by: Jassz
1 Replies
5. Shell Programming and Scripting
Hi Gurus
I am new to this forum.. I am using HP Unix OS.
I have one single string in input file as shown below
Abc123 | cde | fgh | ghik| lmno | Abc456 |one |two |three | four | Abc789 | five | Six | seven | eight | Abc098 | ........
I want to achive the result in a output file as shown... (3 Replies)
Discussion started by: kannansr621
3 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
My input file is below like that :-
$cat abc.txt
Service name: test_taf
Service is enabled
Server pool: test_tac
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SESSION... (3 Replies)
Discussion started by: sp001
3 Replies
7. Shell Programming and Scripting
I have http log that I want to get words after specific "tag", this a sample line from the log:
98,POST,200 OK,www.facebook.com,Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,/ajax/updatestatus.php?__a=1,datr=P_H1TgjTczCHxiGwdIF5tvpC; lu=Si1fMkcrU2SInpY8tk_7tAnw;... (6 Replies)
Discussion started by: erlanq
6 Replies
8. Shell Programming and Scripting
Hello....
Pls help me (and sorry my english) :)
So
I have a file (test.txt) with 1 long line.... for example:
isgc jsfh udgf osff 8462 error iwzr 653 idchisfb isfbisfb sihfjfeb isfhsi gcz eifh
How to print after the "error" word the 2nd 4th 5th and 7th word??
output well be:
653 isfbisfb... (2 Replies)
Discussion started by: marvinandco
2 Replies
9. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
10. Shell Programming and Scripting
i need to substitute word on a specific line.
I was able to do it on command line like below but it is not working in vi.
command line like below:
sed -e '8s/table_name/schema.table_name/' file_name.
in vi table_name and schema are my positional parameters that i pass into the
script.
... (5 Replies)
Discussion started by: pimmit22043
5 Replies
LEARN ABOUT HPUX
libcadmin
libcadmin(1M) libcadmin(1M)
NAME
libcadmin - libc administration command
SYNOPSIS
/usr/sbin/libcadmin
DESCRIPTION
The command is used to perform administrative functions for Currently the only function that the command performs is to replace the shared
32-bit PA-RISC2.0 library in with the shared 32-bit PA-RISC1.1 version of that library.
There are no required arguments or options used with this command. The archive library and the symbolic link are unaffected by the com-
mand.
During the system installation process, the shared 32-bit PA-RISC1.1 library is copied into This library is the same as the PA-RISC2.0
library except that it was built with different compiler options. The PA-RISC2.0 library provides much higher performance than the PA-
RISC1.1 library. However, if the system administrator desires to have the PA-RISC1.1 library installed instead, allows the system adminis-
trator to accomplish this task. When is executed, the PA-RISC2.0 library is stored in and the PA-RISC1.1 library is copied into
It is recommended that the system be re-booted after executing the command so that applications which are linked shared against will use
the shared 32-bit PA-RISC1.1 version of that library.
Once the command is executed, the only way to put the PA-RISC2.0 library back in place is to re-install the operating system.
The command can only be executed by a user with superuser privileges.
DIAGNOSTICS
Multiple executions of the command will result in an error message indicating the PA-RISC1.1 library is already installed.
Executing this command on a PA-RISC1.1 machine will result in an error message indicating the PA-RISC1.1 library is already installed.
RETURN VALUE
Upon successful completion, returns zero(0). Otherwise a one(1) is returned.
WARNINGS
Since HP stopped shipping the PA1.1 version of beginning with HP-UX 11i Version 2, this command is currently nonfunctional. is planned for
obsolescence at a future release.
AUTHOR
was developed by HP.
TO BE OBSOLETED libcadmin(1M)