I have several files that are being generated every 20 minutes. Each file contains 2 columns. The 1st column is Text, 2nd column is Data.
I would like to generate one single file from all these files as follows:
One instance of 1st column Text, followed by 2nd column Data separated by... (5 Replies)
Hi guys,
I'm rather new at using UNIX based systems, and when it comes to scripting etc I'm even newer.
I have two files which i need to compare.
file1: (some random ID's)
451245
451288
136588
784522
file2: (random ID's + e-mail assigned to ID)
123888 xc@xc.com
451245 ... (21 Replies)
Dear Gurus,
I am very new to UNIX. I appreciate your help to manage my files.
I have 16 files with equal number of columns in it. Each file has 9 columns separated by space. I need to compare the values in the second column of first file and obtain the corresponding value in the 9th column... (12 Replies)
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Hi,
I need to find the difference between 2 files in unix and write the result in the new file
File1:
A
B
File2:
X 123 hajkd
Y 345 adjfka
A 123 djafjhd
B 678 dsndjks
Output file:
X 123 hajkd
Y 345 adjfka
Thanks. (6 Replies)
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Dear UNIX experts,
I'm a command line novice working on a Macintosh computer (Bash shell) and have neither found advice that is pertinent to my problem on the internet nor in this forum.
I have hundreds of .csv files in a directory. Now I would like to copy the subset of files that contains... (8 Replies)
I have data of an excel files as given below,
file1
org1_1 1 1 2.5 100
org1_2 1 2 5.5 98
org1_3 1 3 7.2 88
file2
org2_1 1 1 2.5 100
org2_2 1 2 5.5 56
org2_3 1 3 7.2 70
I have multiple excel files as above shown.
I have to copy column 1, column 4 and paste into a new excel file as... (26 Replies)
I have number of csv files (like tmo_2019*). In these files some files have 5th column value as V. I want to copy those files having 5th column value as V to specific directory /test/V_files/.
I tried to extract file names by below but not able to complete command for copy.
find -type f -iname... (4 Replies)
Discussion started by: Bops
4 Replies
LEARN ABOUT DEBIAN
zipios_filepath
zipios::FilePath(3) Library Functions Manual zipios::FilePath(3)NAME
zipios::FilePath -
FilePath represents a path to a file or directory name.
SYNOPSIS
#include <filepath.h>
Public Member Functions
FilePath (const string &path='', bool check_exists=false)
Constructor.
FilePath & operator= (const string &rhs)
operator string () const
FilePath operator+ (const FilePath &name) const
Concatenates FilePath objects.
FilePath filename () const
Returns filename of the FilePath object by pruning the path off.
bool exists () const
bool isRegular () const
bool isDirectory () const
bool isCharSpecial () const
bool isBlockSpecial () const
bool isSocket () const
bool isFifo () const
Protected Member Functions
void pruneTrailingSeparator ()
Prunes the trailing separator of a specified path.
void check () const
This function sets _checked to true, stats the path, to see if it exists and to determine what type of file it is.
Protected Attributes
bool _checked
bool _exists
bool _is_reg
bool _is_dir
bool _is_char
bool _is_block
bool _is_socket
bool _is_fifo
string _path
Static Protected Attributes
static const char _separator = '/'
Detailed Description
FilePath represents a path to a file or directory name.
FilePath has member functions to check if the file path is a valid file system entity, and to check what kind of file system entity it is,
e.g. is it a file, a directory, a pipe etc.
Definition at line 18 of file filepath.h.
Constructor & Destructor Documentation
zipios::FilePath::FilePath (const string &path = '', boolcheck_exists = false)
Constructor. Parameters:
path A string representation of the path.
check_exists If true is specified the constructor will check the existence and type of the path immidiately, instead of deferring that
task until it is needed.
Definition at line 18 of file filepath.cpp.
Member Function Documentation
void zipios::FilePath::check () const [protected]
This function sets _checked to true, stats the path, to see if it exists and to determine what type of file it is. All the query functions
check if _checked is true, and if it isn't they call check(). This means stat'ing is deferred until it becomes necessary.
Definition at line 27 of file filepath.cpp.
bool zipios::FilePath::exists () const [inline] Returns:
true If the path is a valid file system entity.
Definition at line 129 of file filepath.h.
FilePath zipios::FilePath::filename () const [inline]
Returns filename of the FilePath object by pruning the path off.
Definition at line 119 of file filepath.h.
bool zipios::FilePath::isBlockSpecial () const [inline] Returns:
true if the path is block special (a block device file).
Definition at line 157 of file filepath.h.
bool zipios::FilePath::isCharSpecial () const [inline] Returns:
true if the path is character special (a character device file).
Definition at line 150 of file filepath.h.
bool zipios::FilePath::isDirectory () const [inline] Returns:
true if the path is a directory.
Definition at line 143 of file filepath.h.
bool zipios::FilePath::isFifo () const [inline] Returns:
true if the path is a Fifo (a pipe).
Definition at line 171 of file filepath.h.
bool zipios::FilePath::isRegular () const [inline] Returns:
true if the path is a regular file.
Definition at line 136 of file filepath.h.
bool zipios::FilePath::isSocket () const [inline] Returns:
true if the path is a socket.
Definition at line 164 of file filepath.h.
FilePath zipios::FilePath::operator+ (const FilePath &name) const [inline]
Concatenates FilePath objects. A file separator is inserted if appropriate.
Definition at line 111 of file filepath.h.
void zipios::FilePath::pruneTrailingSeparator () [inline, protected]
Prunes the trailing separator of a specified path.
Definition at line 100 of file filepath.h.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::FilePath(3)