10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
2. Shell Programming and Scripting
Hi,
I am working on Shell script and I have a .dat file in which I want to add line numbers. Please see below example file
Input File:
19523479811841494432C2013052700000000
19523479811730333980A2013052700000000
19523479811417044397I2013052700000000
19523479811205895810A2013052700000000... (7 Replies)
Discussion started by: jnrohit2k
7 Replies
3. Shell Programming and Scripting
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Discussion started by: vivek d r
3 Replies
4. AIX
root:/>
# lscfg -vp|grep -c -E 'proc.*Processor'
8
root:/>
# lscfg -vpl sysplanar0 | grep -i way
8 WAY PROC CUOD :
8 WAY PROC CUOD :
8 WAY PROC CUOD :
8 WAY PROC CUOD :
8 WAY PROC CUOD :
8 WAY PROC CUOD :
I have this output and need to know how... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
5. Shell Programming and Scripting
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
6. Shell Programming and Scripting
Hello Friends
I want to use sed command to pick a part of line. FOr example I only need the
/home_put1/bidds/myfo
part of following line
fish://ulavet@rits1.ula.com.tr/home_put1/bidds/myfo
How can I do this bu using sed command ? (2 Replies)
Discussion started by: rpf
2 Replies
7. Solaris
Can anyone tell me difference between cpu-shares vs cpu-cap in solaris & how FSS will work with cpu-caps ? (9 Replies)
Discussion started by: fugitive
9 Replies
8. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am?
thanks
Ocelot (3 Replies)
Discussion started by: ocelot
3 Replies
10. Shell Programming and Scripting
i need to make sure that a command line paramter is with in a certin set of numbers and i dont know how todo it with out checking individual numbers.
if test $1 -eq (need something here)
then
echo hi
fi
like if i put individual numbers in there it works fine but how do i do a range (3 Replies)
Discussion started by: rcunn87
3 Replies