Questions tagged [hp-ux]

HP-UX (Hewlett-Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on UNIX System V (initially System III) and first released in 1984.

HP-UX (Hewlett-Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on UNIX System V (initially System III) and first released in 1984.

Resources

368 questions
0
votes
2 answers

getting error while using sed function on hp unix box

I'm trying to retrieve nth column from "busfile" file by substituting values in "i" the below code works fine on redhat linux, when tried on hp unix i'm getting error "sed: Function {i}{p} cannot be parsed." here is my…
ShravanM
  • 323
  • 1
  • 7
  • 21
0
votes
0 answers

AWK usage in shell script. Hp unix

I'm unable to use the below command using shell script. awk '{a[NR]=$0} $0~s {f=NR} END {for (i=f-B;i<=f+A;i++) print a[i]}' B=1 A=5 s="5S5SDF" testfile Looking for a string "5S5SDF" in testfile. cat myscript #!/bin/ksh echo "The output is" awk…
ShravanM
  • 323
  • 1
  • 7
  • 21
0
votes
1 answer

Changing colour scheme for Prod systems HP-UX

I want to change the color scheme to red when someone logs into the prod system. I achieved this by querying our central repository for prod servers and updating .kshrc as below - host=hostname ... ... search string using $hostname env will be set…
0
votes
1 answer

Unix Recursively move all files but keeping the structure

I have a folder named "in" that contains several folders "a" "b" "c" and I want to move all files to thhe folder "proc" and compress them. The tricky part is the files in "in/a" have to be moved to "proc/a", "in/b" have to be moved to "proc/b" and…
0
votes
3 answers

Get a portion of a line from a file in unix

I have a file named , temp.lst whose contents are something like this : 1,13d0 < /hello/ux/PH/src/DEMO/dir/web/HelloWorld.java < /hello/ux/PH/src/USOURCES/java/frame/contain/ProcessResult.js < /hello/ux/PH/src/DEMO/dir/web/Hello.java <…
6055
  • 439
  • 1
  • 4
  • 14
0
votes
2 answers

HP-UX: libstd_v2 in stack trace of JNI code compiled with g++

uname -mr: B.11.23 ia64 g++ --version: g++ (GCC) 4.4.0 java -version: Java(TM) SE Runtime Environment (build 1.6.0.06-jinteg_20_jan_2010_05_50-b00) Java HotSpot(TM) Server VM (build 14.3-b01-jre1.6.0.06-rc1, mixed mode) I'm trying to run a Java…
Miguel Rentes
  • 994
  • 1
  • 10
  • 27
0
votes
1 answer

Unix open file from line X or first 100 lines after Z found

I have a 2GB text file and I want to read every line 100 lines after a certain string is found example: string: 'epicvar (string) ="5"' string was found on line 5000 so I want to read the file from 5000 to 5100 then the string was also found on…
0
votes
1 answer

Execute interactive command in Hp-UX ksh (without expect) and grab child process

I have to execute a unix interactive command that launches another ksh interactive shell, so I can then execute other commands. expect or tcl/tk is not available, and it seems that I cannot play with redirects (as first interactive command launches…
0
votes
0 answers

Arab/UTF8 Characters in Swing/Java application on HP-UX v11.3 (B11.31)

I am confronted with a strange situation that I do not understand. I run a Java-Swing test application, that reads Arab-UTF8 hard-coded strings, builds a simple JXTable and shows the UTF8 strings on a column. The application is an executable jar…
ioni28
  • 81
  • 1
  • 4
0
votes
3 answers

Getting past dates in HP-UX with ksh

Ok, so I need to translate a script from a nice linux & bash configuration to ksh in hp-ux. Each and every command expects a different syntax and i want to kill myself. But let's skip the rant. This is part of my script anterior=`date +"%Y%0m" -d '1…
AticusFinch
  • 2,351
  • 3
  • 25
  • 32
0
votes
2 answers

A old text file with special format

I am working on HP-UX project, there are a old document. Can open it with vim, but there are some special character among text. For example: .P "xxxxx" .AL 1 10 .LI "xxx" .H 3 "xxxx" It looks like html but not be html. Is it possible convert…
atu0830
  • 405
  • 7
  • 15
0
votes
1 answer

Check for no extension in switch case in unix

I have a script that is using a switch case to check for file extensions and do something on that. # Gets the extension of the file Extension=${file##*.} case ${Extension} in abc) #Do something pqr) …
6055
  • 439
  • 1
  • 4
  • 14
0
votes
1 answer

Finding duplicate directories in separate directories in unix

I have 2 directories , dir1 and dir2. There are some directories in them. Suppose dir1 has a,b and c directories and dir2 has c,d and e. I need a script that will find out the duplicate directories in dir1 and dir2,in this case, "c" and log it into…
6055
  • 439
  • 1
  • 4
  • 14
0
votes
1 answer

Search for a pattern in files and log the result into another file

I have a file One.lst that has the following content: a b c Now,i have to search in : a_man.lst b_man.lst c_man.lst the pattern : true. Now,suppose b_man.xml has the above pattern. So, I have to log b in another file, say Two.lst.
6055
  • 439
  • 1
  • 4
  • 14
0
votes
1 answer

Removing lines from a file already present in another file

I have 2 files : One.lst and Two.lst. One.lst contains : a b c d e Two.lst contains : c d I need One.lst to contain only a,b,e ie removing the lines from One.lst that are already present in Two.lst. So,the updated One.lst will be : a b e
6055
  • 439
  • 1
  • 4
  • 14