Here the result :
Thanks but I dont want "/" and "/Old" printed out
I was aware about the result.
But those are also the parent dir as you mentioned.
Do you have these fix set of dir? if yes then of course you can format the output. but if those are just the example then what is the rule behind printing of parent dir?
Hi i would like to find out how can i write a procmail rule to filter based on the email content.i was unable to locate any similar threads that does filtering based on the content.would appreciate any pointers. thanks:0
* ^From: Machine1 <machine1@aaa.com>
# i will have a string "machine1.log"... (1 Reply)
Hi Everyone , have a nice
i would need a little help on this
i have file which contains blocks such as given below
<hgsdp:msisdn=923228719047,loc;
HLR SUBSCRIBER DATA
SUBSCRIBER IDENTITY
MSISDN IMSI STATE AUTHD
923228719047 410072110070614 CONNECTED ... (3 Replies)
I have a .kml file. So I want filter the .kml to get only the tags that have this numeric codes that they are in a text file
11951
11952
74014
11964
11965
11969
11970
11971
11972
60149
74018
74023
86378
11976
11980
11983
11984
11987 (5 Replies)
Hi,
I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file C.
Thanks a lot!!
Here is a sample of my question.
e.g. (file A: a.txt; file B: b.txt; file... (3 Replies)
hi all,
i had the below script
x=`cat input.txt |wc -1`
awk 'NR>1 && NR<'$x' ' input.txt > output.txt
by using above script i am able to remove the head and tail part from the input file and able to append the output to the output.txt but if i run it for second time the output is... (2 Replies)
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Not sure if this is the correct forum for this question. I have two files. file1.zip, file2
Input:
file1.zip
col1, col2 , col3
a , b , 0:0:0:0:0:c436:9346:d40b
x, y, 0:0:0:0:0:880:39f9:c9a7
m, n , 0:0:0:0:0:80c7:9161:fe00
file2.txt
col1
c4:36:93:46:d4:0b... (1 Reply)
Discussion started by: anil.v
1 Replies
LEARN ABOUT DEBIAN
explain_dirfd_or_die
explain_dirfd_or_die(3) Library Functions Manual explain_dirfd_or_die(3)NAME
explain_dirfd_or_die - get directory stream file descriptor and report errors
SYNOPSIS
#include <libexplain/dirfd.h>
int explain_dirfd_or_die(DIR *dir);
int explain_dirfd_on_error(DIR *dir);
DESCRIPTION
The explain_dirfd_or_die function is used to call the dirfd(3) system call. On failure an explanation will be printed to stderr, obtained
from the explain_dirfd(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_dirfd_on_error function is used to call the dirfd(3) system call. On failure an explanation will be printed to stderr, obtained
from the explain_dirfd(3) function, but still returns to the caller.
dir The dir, exactly as to be passed to the dirfd(3) system call.
RETURN VALUE
The explain_dirfd_or_die function only returns on success, see dirfd(3) for more information. On failure, prints an explanation and exits,
it does not return.
The explain_dirfd_on_error function always returns the value return by the wrapped dirfd(3) system call.
EXAMPLE
The explain_dirfd_or_die function is intended to be used in a fashion similar to the following example:
int result = explain_dirfd_or_die(dir);
SEE ALSO dirfd(3)
get directory stream file descriptor
explain_dirfd(3)
explain dirfd(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_dirfd_or_die(3)