10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a file like this
AA||
BB||
CC||
I want to remove the pipelines (||) from the last occurrance of them in file.
that means after removal my file should be like this
AA||
BB||
CC
how can we achieve this? (2 Replies)
Discussion started by: nnani
2 Replies
2. Shell Programming and Scripting
Hey,
Well, we're starting scripting next week for my class, and I have my command done, but I don't actually understand what the meaning is, so I was just wondering if someone could "translate" this in to words so that I might be able to do this better...
command1 | command2 | command3... (5 Replies)
Discussion started by: sso
5 Replies
3. Shell Programming and Scripting
ls --color=always -laX | awk '{print $1, $3, $4, $2, $8}'
|sort -k 1,1 -k 9,9r
they work separately... but i don't know how to combine this to work.
thx! (1 Reply)
Discussion started by: surreal7z
1 Replies
4. Programming
Hello all, I am trying to learn more about programming Unix pipes in C.
I have created a pipe that does od -bc < myfile | head
Now, I am trying to create od -bc < myfile | head | wc
Here is my code, and I know I might be off, thats why I am here so I can get some clarification.
#include... (1 Reply)
Discussion started by: petrca
1 Replies
5. Shell Programming and Scripting
Hello,
I am writing a script to remove multiples pipes (|) from a file. It needs to look like this data|data|data
instead of data|||data||data||||data
I have found the correct sed command to do this, but I need to do it in a loop and a for loop has not worked for me. It needs to be done on... (3 Replies)
Discussion started by: TL56
3 Replies
6. Shell Programming and Scripting
Hello,
I have a program which opens a pipe for communication using file handle and forks 5 child processes.
@waitlist = (1,2,3,4,5);
foreach $item (@waitlist) {
pipe *{$item},RETHAND;
unless ($pid = fork()) {
# Child process
print RETHAND... (1 Reply)
Discussion started by: the_learner
1 Replies
7. Shell Programming and Scripting
can we use pipes to redirect the output of any command to grep .....
like i wanted to write this script about checking the online status of a certain user so ...can i send the output of who to grep directly using pipes...
one way was this :
who > temp
grep $uname temp
i was wondering if... (4 Replies)
Discussion started by: evergreen_cool
4 Replies
8. Programming
Extremely need to understand some aspects of pipes realization. The main question is in which memory are pipes placed? (13 Replies)
Discussion started by: pranki
13 Replies
9. Shell Programming and Scripting
Hi,
Can the cd command be invoked using pipes???
My actual question is slightly different. I am trying to run an executable from different folders and the path of these folders are obtained dynamically from the front end. Is there a way in which i can actually run the executable... (2 Replies)
Discussion started by: Sinbad
2 Replies
10. Filesystems, Disks and Memory
Hello!
How I can increase or decrease predefined pipe buffer size?
System FreeBSD 4.9 and RedHat Linux 9.0
Thanks! (1 Reply)
Discussion started by: Jus
1 Replies