10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi i am new to shell scripting and any help is really appreciated.
my requirement is in,
ps -e -o pid,uname,cmd
how can i split and take only the cmd part from it.
I tried awk but the issue is when the cmd is returning a lengthy command which itself has some spaces it is truncating the... (7 Replies)
Discussion started by: Jojo90
7 Replies
2. Shell Programming and Scripting
I have 2 files open in Vim at the same time.
I yank from one with
16yw
and get this
INSERT INTO ALIS_PART_MANU_PART_TAB (SEQUENCE_NO,PART_NO,MANU_NO,MANU_PART_NO,ROWVERSION) VALUES (
Now I go to the second file and type the command to add this to the beginning of every... (3 Replies)
Discussion started by: djehresmann
3 Replies
3. Shell Programming and Scripting
Hello,
There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it?
open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies
4. Shell Programming and Scripting
I am trying to create the file and redirect the output in the same command line which is line 4 in the below program.
#!/bin/bash
read -p "Enter File Name:" value1
echo "Your File Name is $value1"
sed 's/abcd/'$value1'/g' abcd_calls > $value1_calls
This is the error it generates
... (3 Replies)
Discussion started by: learnbash
3 Replies
5. Shell Programming and Scripting
Hi,
I am using SunOS
I want to serch my previous command
from unix prompt
(like on AIX we can search by ESC -k)
how to get in SunOs
urgent help require. (10 Replies)
Discussion started by: RahulJoshi
10 Replies
6. UNIX for Dummies Questions & Answers
paste -d "\0" ap_cntrl_total.txt.1 ap_cntrl_total.txt.2, and it shows:
01234567890911051342C091026 0000910517990000000000009105179900000000CHOPME
it put space btwn 1026 and 000091
should not have space.
---------- Post updated at 03:54 PM ---------- Previous update was at 03:03 PM... (1 Reply)
Discussion started by: tjmannonline
1 Replies
7. Shell Programming and Scripting
how can i make a script or command to have output like this
$cat file
10000 20000
$cat a
10000
$cat b
20000
this is the solution paste a b > file
but another solution?
$cat file
10000 20000 (3 Replies)
Discussion started by: kenshinhimura
3 Replies
8. UNIX for Advanced & Expert Users
I in no means consider myself a expert in unix however my question is a little more complex. I am running a mac os 10 server and all web settings and email settings have been set up using the unix terminal. I am in the process or redirecting my mxrecords to a spam filtering company but i am... (11 Replies)
Discussion started by: nbredthauer
11 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
How can I move only files to another destination using mv cmd in hp-ux. (2 Replies)
Discussion started by: mhbd
2 Replies
10. UNIX for Dummies Questions & Answers
I've noticed most of my postings here are because of syntax errors.
So I want to begin compiling a large txt file that contains all the "man <cmd>" of the commands I most have problems with. I ran a "man nawk >> nawk.txt" but it included a header/footer on each "page". Anyone know how I'd be... (6 Replies)
Discussion started by: yongho
6 Replies