06-30-2009
hey,
perhaps cat will help you?
cat file1 file2 file3 >> filex
cat filex file4 >> filex
cat filex file5 >> filex
cu
lowbyte
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a command stream that will parse down an ftp DIR listing of a remote directory and return the name of the newest file that I am interested in. The command is
sed -e '/^d/d' sppay.listing |sed -n -e '/SPPAY/p'|sort -r -k 43M,45 -k 47,48 -k 50,54|sed -n -e '1p'|cut -c 56-99
and what it... (2 Replies)
Discussion started by: beilstwh
2 Replies
2. Shell Programming and Scripting
Hi All,
Please tell me how to append some text message at the end of the file.
"File too large to view"
example: xyz.log contains
hhhhhhhhhhh
hhhhhhjjjjjjjjj
jjjjjjjjjjjjjjjjjjjjjj
"File too large to view"
Please advice (3 Replies)
Discussion started by: rajeshorpu
3 Replies
3. Shell Programming and Scripting
Hello all.
I was wondering if it possible to write a bash script that would do the following:
I perform molecular modelling calculations and the output files are all text files with various different extensions.
For example, I submit the input file "job_name.inp" and when it is done or the... (18 Replies)
Discussion started by: marcozd
18 Replies
4. Shell Programming and Scripting
Say I have a text file like:
1
3
4
How would I use ksh to put the number '2' into the second line of that file? I'm using OpenBSD so the sed syntax might be a bit different (I have no idea how to use sed, though) (4 Replies)
Discussion started by: guitarscn
4 Replies
5. Shell Programming and Scripting
Hi
Below command is returning the list of files which having this string "MTL_SYSTEM_ITEMS".
find . -name "*"|xargs grep -il MTL_SYSTEM_ITEMS
Ex: Above command is returing 2 files (Out of 10 files 2 files having this string). ./file1.txt and ./file2.txt
Here I want to append... (3 Replies)
Discussion started by: balajiora
3 Replies
6. Shell Programming and Scripting
Hi i have a file like this
mailboxnum 20
filename <to subsitute>
fileloaction /home/dd234/
filetype txt
in a directory i have set of files for ex:
TT45.1.2
TT45.1.3
TT45.1.4
.
.
in for loop i have to take this files and subsitute one by one
ex: (1 Reply)
Discussion started by: greenworld123
1 Replies
7. Shell Programming and Scripting
Following is the code:
------------------------------
a=100
b=200
c=300
touch testfl.txt.gz
chmod 664 testfl.txt.gz
echo $a|gzip >> "testfl.txt.gz"
echo $b|gzip >> "testfl.txt.gz"
echo $c|gzip >> "testfl.txt.gz"
------------------------------
There is a requirement as follows.
I need... (1 Reply)
Discussion started by: kmanivan82
1 Replies
8. UNIX for Dummies Questions & Answers
hi gurus,
I'm executing some commands and I want to append both the command and output to a text file. Example:
echo "strings -a wicmex.o|grep '$Header'" >> tmp.txt
strings -a wicmex.o|grep '$Header' >> tmp.txt
echo "strings -a libwip.a|grep '$Header'" >> tmp.txt
strings -a libwip.a|grep... (1 Reply)
Discussion started by: donisback
1 Replies
9. Shell Programming and Scripting
i have to append a text file
grep for a word, if found, put comment in starting of the line.
here is an example
cat test.sh
bin/ksh
Hello World
Test Message
:wq!
search for "bin" word in test.sh file if found comment it out at starting of the line:
Output as follows:
#bin/ksh... (5 Replies)
Discussion started by: raghur77
5 Replies
10. UNIX for Beginners Questions & Answers
In the awk below I am trying to cp and paste each matching line in f2 to $3 in f1 if $2 of f1 is in the line in f2 somewhere. There will always be a match (usually more then 1) and my actual data is much larger (several hundreds of lines) in both f1 and f2. When the line in f2 is pasted to $3 in... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
zzip_open
ZZIP_OPEN(3) zziplib Function List ZZIP_OPEN(3)
NAME
zzip_open, zzip_open_ext_io, zzip_open_shared_io - ...
SYNOPSIS
#include <zzip/lib.h>
ZZIP_FILE * zzip_open((zzip_char_t * filename, int o_flags));
ZZIP_FILE * zzip_open_ext_io((zzip_char_t * filename, int o_flags, int o_modes, zzip_strings_t * ext,
zzip_plugin_io_t io));
ZZIP_FILE * zzip_open_shared_io((ZZIP_FILE * stream, zzip_char_t * filename, int o_flags,
int o_modes, zzip_strings_t * ext, zzip_plugin_io_t io));
DESCRIPTION
The zzip_open_ext_io function uses explicit ext and io instead of the internal defaults, setting them to zero is equivalent to zzip_open
note that the two flag types have been split into an o_flags (for fcntl-like openflags) and o_modes where the latter shall carry the
zzip_flags and possibly accessmodes for unix filesystems. Since this version of zziplib can not write zipfiles, it is not yet used for
anything else than zzip-specific modeflags.
The zzip_open_ext_io function returns a new zzip-handle (use zzip_close to return it). On error the zzip_open_ext_io function will return
null setting errno(3).
The zzip_open_shared_io function takes an extra stream argument - if a handle has been then ext/io can be left null and the new stream
handle will pick up the ext/io. This should be used only in specific environment however since zzip_file_real does not store any
ext-sequence.
The benefit for the zzip_open_shared_io function comes in when the old file handle was openened from a file within a zip archive. When the
new file is in the same zip archive then the internal zzip_dir structures will be shared. It is even quicker, as no check needs to be done
anymore trying to guess the zip archive place in the filesystem, here we just check whether the zip archive's filepath is a prefix part of
the filename to be opened.
Note that the zzip_open_shared_io function is also used by zzip_freopen that will unshare the old handle, thereby possibly closing the
handle.
The zzip_open_shared_io function returns a new zzip-handle (use zzip_close to return it). On error the zzip_open_shared_io function will
return null setting errno(3).
AUTHOR
o Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
COPYRIGHT
Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public
License or alternatively the restrictions of the Mozilla Public License 1.1
zziplib 0.13.56 ZZIP_OPEN(3)