03-29-2009
awk file size limit
My code is
awk '{
out=split(FILENAME,a,"/")
sub(/\./,"_",a[out])
sub(/\-/,"_",a[out])
NEWSTRING="main_"a[out-1]"_"a[out]"(" # The word we want to insert
gsub(/main\(/,NEWSTRING); # the word to be replaced
print "Main becomes ",NEWSTRING")","in file ",FILENAME >> "/home/ds2/test/NEW2.txt"
print NEWSTRING")" >> "/home/ds2/test/MAIN2.txt"
print FILENAME >> "/home/ds2/test/NAME2.txt"
print $0 > FILENAME;
}' $FNAME
if the input size was more than 4K the function fails,,,, so pls any suggestions???
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I limit size of a file to 1 MB or something like that under Linux? (4 Replies)
Discussion started by: _hp_
4 Replies
2. Solaris
I want to have a permanent file created - and limit the size that this file can grow.. I want a circular file..
ie max size of file is 10 mb.. and if any new data written to file the oldest data removed..
How can I do this?
I am on solaris 9 x86 (3 Replies)
Discussion started by: frustrated1
3 Replies
3. AIX
Can anybody help me?
How to increase file size limit in aix 5.2? I have already specified in /etc/security/limits file :
default:
fsize = -1
core = 2097151
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = 2000 (2 Replies)
Discussion started by: vjm
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I have a problem writing or copying a file 2GB or larger to either the second or third disk on my C8000. I've searched this forum and found some good information on this but still nothing to solve the problem.
I'm running hpux 11i, JFS3.3 and disk version 4 (from fstyp) on all 3 disks.
... (2 Replies)
Discussion started by: HaidoodFaulkauf
2 Replies
5. UNIX for Advanced & Expert Users
hi,
how can I find out what the limit of a file size is on unix?
thanks (6 Replies)
Discussion started by: JamesByars
6 Replies
6. Shell Programming and Scripting
Hi,
Can some one please tell me the file size limit (if any) while using sftp
I am trying to transfer a file ( size is almost 350 MB ) but it fails as shown below.
sftp> put file1 ./file1
Uploading file1 to /dir1/./file1
file1 25% 100MB 10.2MB/s 00:28 ETA
Couldn't write to remote... (6 Replies)
Discussion started by: vikash_k
6 Replies
7. Shell Programming and Scripting
Hi
I have many problems with a script. I have a script that formats a text file but always prints the same error when i try to execute it
The code is that:
{
if (NF==17){
print $0
}else{
fields=NF;
all=$0;
while... (2 Replies)
Discussion started by: fate
2 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I want to insert xyz.log file in CLOB field of Oracle DB. The log file increases its size dynamically. When i am inserting the file into DB i have to check the size of the file, if its size is more than 32KB then insert upto that size into CLOB field of DB. Otherwise proceed normally.
... (1 Reply)
Discussion started by: rajeshorpu
1 Replies
9. Shell Programming and Scripting
Hi All,
I want to store 32KB of file in Oracle DB into CLOB field. I am not able to insert more than 32KB of file into CLOB. So i want to put a limit on the file size. I am using k shell.
My file size will dynamically increase its size, i want to check the file size if it is more than 32KB... (1 Reply)
Discussion started by: rajeshorpu
1 Replies
10. HP-UX
Greetings,
I'm attempting to dump a filesystem from a RHEL5 Linux server to a VXFS filesystem on an HP-UX server. The VXFS filesystem is large file enabled and I've confirmed that I can copy/scp a file >2GB to the filesystem.
# fsadm -F vxfs /os_dumps
largefiles
# mkfs -F vxfs -m... (12 Replies)
Discussion started by: bkimura
12 Replies
LEARN ABOUT DEBIAN
gnunet-transport
gnunet-transport(1) General Commands Manual gnunet-transport(1)
NAME
gnunet-transport - measure and control the transport subsystem
SYNOPSIS
gnunet-transport [OPTIONS]
DESCRIPTION
gnunet-transport is a tool to access various functions of GNUnet's transport subsystem from the command-line. Most of these are not
expected to be useful for end-users. gnunet-transport can be used to evaluate the performance of the transports, force a peer to connect
to another peer (if possible). Other functions should be added in the near future.
-b, --benchmark
measure how fast we are receiving data (from all connections). On exit, the data rate will be reported. Runs until aborted with
CTRL-C.
-c FILENAME, --config=FILENAME
configuration file to use
-C PEER, --connect=PEER
peer to connect to (and to use for sending if used in conjunction with -s)
-h, --help
print help page
-i, --information
print information about our current connections (once)
-m, --monitor
print information about our current connections (continuously)
-L LOGLEVEL, --loglevel=LOGLEVEL
Change the loglevel. Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG.
-s, --send
transmit (dummy) traffic as quickly as possible to the peer specified with the -C option. The rate will still be limited by the
quota(s) determined by the peers (ATS subsystem). Will run until CTRL-C is pressed or until the connection to the other peer is
disrupted.
-t, --test
test transport configuration. With this flag, the tool will check if each of the configured transport plugins has a working
address. Plugins that do not have a listen port configured will be ignored. The test is performed with the help of an external
server (by default running on gnunet.org) which tries to contact the local machine. The test can only work if the local GNUnet peer
is not yet running.
-v, --version
print the version number
-V, --verbose
be verbose
NOTES
REPORTING BUGS
Report bugs by using mantis <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet-developers@gnu.org>
SEE ALSO
gnunet-arm(1)
GNUnet 26 Oct 2011 gnunet-transport(1)