I have been busy reading away on devices and filesystems and I am stuck on a particular subject matter.. I'm not understanding the concept behind mknod mkfifo makedev or related commands..
can anyone shed some light on the subject.!
any feedback welcome!
moxxx68 (0 Replies)
#!/bin/bash
echo $1 | cat - $2 >> /tmp/$$ && mv /tmp/$$ $2
im trying to get the first argument to go in the middle of the second argument which is a file, anyone any ideas. i have only managed to get it to go on the end or the front.
been fiddling about with wc -l, i get the number of lines... (5 Replies)
Suppose that I have some data:
12,30
12,45
2,3
7,8
3,9
30, 8
45,54
56,65
Where (a,b) indicates that a is connected to b. I want to get all connected nodes to one point. For instance, the output of the above
example should be something like:
Group 1
2,3
3,9
Group 2
12,30
12,45... (4 Replies)
Hi There
I am pretty new to UNIX and have only been using it from a basic point of view,I now want to start using it and learning more , have got a whole lot of books and documentation from the web and am slowly learning.I have written a get script in windows :-
lcd E:\MAIN\PRO\FILES\MAINDB... (1 Reply)
I want to search for the line with the group name and add the user into the group. The file format is the same as /etc/group
The code i wrote is
egrep "^$newGID" $group >/dev/null
FS=":"
oldData=awk -F: '{print $3}'
newData= "$oldData,$newUser"
sed -n $4/$newData $group
but a friend... (1 Reply)
I am developing a multi-threaded library that helps the transformation of messages between threads in different processes using shared memory.
I am using the pthreads condition facility in order to synchronize access to the shared memory slots through which the messages are passed.
My test... (2 Replies)
okay,i made a grave mistake in installing the base bare bones install of debian.
here i have edited this from the original.
this morning when i got home from work i did some searching and then just shut the system down via the mechanical off on switch. waited a few minutes and then restarted... (0 Replies)
I've written a shell script to create id in oracle database. However in some db the script just hanging.
How can I say to the script "If you are hanging for more than 3 min" then kindly come out and continue in next id creation.
Regards.
GV (1 Reply)
Can someone help me with geting the desired output?
Source:
Bank1.sss
63 Result code
2 Result code
4 Result code
Bank2.sss
474 Result code
1 Result code
4 Result code
2 Result code
1 Result code
Output:... (12 Replies)
Discussion started by: zsycho
12 Replies
LEARN ABOUT REDHAT
igawk
IGAWK(1) Utility Commands IGAWK(1)NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)