11-02-2015
Thanks it works for me
I would like to know can we get file size also in same command
like
Quote:
current output is
"Filename.txt" "line count"
can we get
"filename.txt" "line count" "size of file"
10 More Discussions You Might Find Interesting
1. Solaris
I need to get multiple files from a windows server to a solaris server using sftp,
I tried it but only can get one file at a time ( I'm unable to use a wild card character using sftp) hoe do i do this.
any light on this is appreciated.
Ram. (3 Replies)
Discussion started by: ramky79
3 Replies
2. Shell Programming and Scripting
Hi,
Below is the script which ftps the file from unix server and putting in a different directory(but on unix server)
How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script?
How can this be... (1 Reply)
Discussion started by: venkatesht
1 Replies
3. Shell Programming and Scripting
Hi,
I search all forum, but I can not find solutions of my problem :(
I have multiple files (5000 files), inside there is this data :
FILE 1:
1195.921 -898.995 0.750312E-02-0.497526E-02 0.195382E-05 0.609417E-05
-2021.287 1305.479-0.819754E-02 0.107572E-01 0.313018E-05 0.885066E-05
... (15 Replies)
Discussion started by: guns
15 Replies
4. Shell Programming and Scripting
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies
5. Shell Programming and Scripting
I have a value in a file i am processing that has a date like "2012-Jun-13"
how can I convert a date like that 2012-06-13?
Am I stuck building an array of three digit months and corresponding numbers and running through the logic of figuring out the number??
or can I convert this with... (1 Reply)
Discussion started by: trey85stang
1 Replies
6. AIX
Hi,
How can we share a AIX drive on to Windows 2012 server. or vise versa.
Note: Not using NFS/CIFS/samba. (*we are not able to use samba/NFS/CIFS for some reason)
Requirement: How to have real time file sharing over the network between Windows and UNIX
Do you guys have any ... (4 Replies)
Discussion started by: System Admin 77
4 Replies
7. Solaris
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies
8. Shell Programming and Scripting
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
Discussion started by: gvkumar25
4 Replies
9. UNIX for Advanced & Expert Users
I'm authenticating with SSSD / Kerberos against Windows Server 2012 R2. I've setup credentails delegation using these options:
Host *
GSSAPIAuthentication yes
GSSAPIDelegateCredentials yes
GSSAPITrustDns yes
For both client/server but no luck. I've read online that I need to run... (2 Replies)
Discussion started by: Devyn
2 Replies
10. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
LEARN ABOUT MOJAVE
yencode
yencode(n) Text encoding & decoding binary data yencode(n)
__________________________________________________________________________________________________________________________________________________
NAME
yencode - Y-encode/decode binary data
SYNOPSIS
package require Tcl 8.2
package require yencode ?1.1.2?
::yencode::encode string
::yencode::decode string
::yencode::yencode ?-name string? ?-line integer? ?-crc32 boolean? (-file filename | ?--? string)
::yencode::ydecode (-file filename | ?--? string)
_________________________________________________________________
DESCRIPTION
This package provides a Tcl-only implementation of the yEnc file encoding. This is a recently introduced method of encoding binary files
for transmission through Usenet. This encoding packs binary data into a format that requires an 8-bit clean transmission layer but that
escapes characters special to the NNTP posting protocols. See http://www.yenc.org/ for details concerning the algorithm.
::yencode::encode string
returns the yEnc encoded data.
::yencode::decode string
Decodes the given yEnc encoded data.
::yencode::yencode ?-name string? ?-line integer? ?-crc32 boolean? (-file filename | ?--? string)
Encode a file or block of data.
::yencode::ydecode (-file filename | ?--? string)
Decode a file or block of data. A file may contain more than one embedded file so the result is a list where each element is a three
element list of filename, file size and data.
OPTIONS
-filename name
Cause the yencode or ydecode commands to read their data from the named file rather that taking a string parameter.
-name string
The encoded data header line contains the suggested file name to be used when unpacking the data. Use this option to change this
from the default of "data.dat".
-line integer
The yencoded data header line contains records the line length used during the encoding. Use this option to select a line length
other that the default of 128. Note that NNTP imposes a 1000 character line length limit and some gateways may have trouble with
more than 255 characters per line.
-crc32 boolean
The yEnc specification recommends the inclusion of a cyclic redundancy check value in the footer. Use this option to change the
default from true to false.
% set d [yencode::yencode -file testfile.txt]
=ybegin line=128 size=584 name=testfile.txt
-o- data not shown -o-
=yend size=584 crc32=ded29f4f
REFERENCES
[1] http://www.yenc.org/yenc-draft.1.3.txt
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category base64
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
encoding, yEnc, ydecode, yencode
CATEGORY
Text processing
COPYRIGHT
Copyright (c) 2002, Pat Thoyts
base64 1.1.2 yencode(n)