10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
2. Solaris
Hi all,
Sorry if I sound like a novice , I have always thought that for network file system which can be shared, there will be some access restriction in which
when user A is writing/editing fileA, user B is able to view the same fileA but cannot write/edit it until user A has... (6 Replies)
Discussion started by: javanoob
6 Replies
3. Shell Programming and Scripting
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies
4. Shell Programming and Scripting
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Discussion started by: rohit_shinez
13 Replies
5. Shell Programming and Scripting
i will like to give my files as
fileB :
02.09.2011:MOU04/KUBIS--R_Lieferung_1/KUBIS_V15.0/vpn_wls_15-0-0b01
02.09.2011:MOU04/KUBIS--R_Lieferung_2/KUBIS_V15.0/apng_wls_15-0-0b02
31 02.09.2011:MOU04/KUBIS--R_Lieferung_2/KUBIS_V15.0/ecc_wls_15-0-0b02
32 ... (2 Replies)
Discussion started by: rajniman
2 Replies
6. UNIX for Dummies Questions & Answers
I am using grep to match a pattern, but the output is strange.
$ grep -r -o "pattern" *
Gives me:
Binary file foo1 matches
Binary file foo2 matches
Binary file foo3 matches
To find the lines before/after, I then have to use the following on each file:
$ strings foo1 | grep -A1 -B1... (0 Replies)
Discussion started by: chipperuga
0 Replies
7. UNIX for Dummies Questions & Answers
I assign the variable
name=`find . -type f | awk -vR=$num '{if (NR == R) {print; exit}}`
which returns the name of a file in "$num" ordered in the folder to the variable $name.
I want to use IF and determine if the file is a NORMAL text file (does not contain an extension), the command will... (1 Reply)
Discussion started by: suyaku92
1 Replies
8. UNIX for Dummies Questions & Answers
I assign the variable
name=`find . -type f | awk -vR=$num '{if (NR == R) {print; exit}}`
which returns the name of a file in "$num" ordered in the folder to the variable $name.
I want to use IF and determine if the file is a NORMAL text file (does not contain an extension), the command will... (1 Reply)
Discussion started by: suyaku92
1 Replies
9. Shell Programming and Scripting
Hi, could some help me convert CSV file (with double quoted strings) to pipe delimited file:
here you go with the same data:
1,Friends,"$3.99 per 1,000 listings",8158here " 1,000 listings " should be a single field.
Thanks,
Ram (8 Replies)
Discussion started by: Ram.Math
8 Replies
10. Shell Programming and Scripting
Hi,
I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good files into a tar.gz file (tar cvfz good.tar.gz *.goog.out )
Is there a way I can automate this... (4 Replies)
Discussion started by: rockytodd
4 Replies
PIPE(3) Library Functions Manual PIPE(3)
NAME
pipe - two-way interprocess communication
SYNOPSIS
bind #| dir
dir/data
dir/ctl
dir/data1
dir/ctl1
DESCRIPTION
An attach(5) of this device allocates two new streams joined at the device end. X/data and x/ctl are the data and control channels of one
stream and x/data1 and x/ctl1 are the data and control channels of the other stream.
Data written to one channel becomes available for reading at the other. Write boundaries are preserved: each read terminates when the read
buffer is full or after reading the last byte of a write, whichever comes first.
Written data is buffered in kernel stream blocks. The writer will block once the stream is full, typically after 32768 bytes or 16 writes.
The writer will resume once the stream is less than half full.
If there are multiple writers, each write is guaranteed to be available in a contiguous piece at the other end of the pipe. If there are
multiple readers, each read will return data from only one write.
The pipe(2) system call performs an attach of this device and returns file descriptors to the new pipe's data and data1 files. The files
are open with mode ORDWR.
SEE ALSO
pipe(2)
SOURCE
/sys/src/9/port/devpipe.c
PIPE(3)