10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Discussion started by: aberg
6 Replies
2. UNIX for Advanced & Expert Users
On one of the Unix server B.11.31. a disk that has been provisioned from the VMAX, but according to the diskinfo its show coming from clarion.
sudo /opt/emc/SYMCLI/bin/symvg sho /dev/vg_<name>
Volume Group Name : /dev/vg_<name>
Volume Group Type : HP-UX LVM
Volume Group State ... (0 Replies)
Discussion started by: kpatel786
0 Replies
3. Shell Programming and Scripting
I'm trying to sort the list below, so that multiple instances of the form
pass=i_d=j
are contiguous. Curiously, the standard sort command to do this works some of the time (it produced the output below) but not all of the time.
the command I used was
cat fileName | sort -k1.26,1.26n... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
4. Shell Programming and Scripting
Hi,
I have a file that has inconsistently numbered columns.
Like row1 has 23 columns, and row 2 has 34 columns etc.
I would like to re-order the first 8 columns as required and from the 9th column till the end, I would like to print it as it is.
I tried to read the re-ordered 8 columns... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
5. Shell Programming and Scripting
I have an input list of:
I am just trying to turn this list into its seconds since epoch "+%s" time equivalent. I'm trying to use the following, but every time I run the command it gives me different answers, they are close, but never the same... any clues as to why?
xargs -I{} date -j -f... (3 Replies)
Discussion started by: mdlloyd7
3 Replies
6. Shell Programming and Scripting
The command ps -eaf gives inconsistent result when executed on XYZ server (the command shows 1, 2 or 3 instances of the process. Ideally it should show only 1). I have attached the script file that was executed and the corresponding output. When the same script was executed on ABC server it gave... (1 Reply)
Discussion started by: rebels
1 Replies
7. UNIX for Advanced & Expert Users
Hi
I'm executing a menu script in which I `cat a file` but it's giving different output some times. Following is the code fragment taken from my script.
while true
do
cat procs.configured
echo ---------separator--------------
sleep 3
done
when I execute this code fragment, `cat` outputs... (2 Replies)
Discussion started by: axes
2 Replies
8. Shell Programming and Scripting
Input File:
1234567890123456789012345678901234
----------------------------------
11111 XXX xxxxx 6666666666
22222 YYY 2222222222
33333 AAA TTT xxxxx 9999999999
44444
55555 RRR UUU 5555555555
66666 TTT nnnnn 2222222222
77777 XXX ... (4 Replies)
Discussion started by: lordsmiter
4 Replies
9. Shell Programming and Scripting
I am using a piece of code which is working fine in some cases and is not working in some other instances. All I am doing is grep'ing and concatenating.
Below is a working scenario.
$ echo $var1
REPLYFILENAME=Options_NSE1.txt.enc
$ FILE_NM=`echo ${var1##*=}`.gz (Take everything after... (1 Reply)
Discussion started by: jamjam10k
1 Replies
10. HP-UX
Hi
I am using HP - UX...
When I execute the below commands I get these results...
Why do i get a different shell value when i run echo $SHELL?
# echo $0
ksh
# echo $SHELL
sh
# ps -p$$
PID TTY TIME COMMAND
4013 pts/7 0:00 ksh (2 Replies)
Discussion started by: gurubarancse
2 Replies