Search Results

Search: Posts Made By: TechGyaann
8,162
Posted By rbatte1
You would have to use a checksum algorithm that...
You would have to use a checksum algorithm that is the same on both hosts, and I don't know what that would be for MVS. Choosing one that doesn't match may leave you thinking every transfer has...
8,162
Posted By Don Cragun
Have you considered using: lcd...
Have you considered using:
lcd <AIX_source_directory>
mput *
(you may need to play with quoting or escaping the asterisk depending on how you give your ftp commands to ftp).
8,162
Posted By Don Cragun
The correct format for using a here document...
The correct format for using a here document would be something more like:
f_FTP_MVS()
{
ftp -sinv $REMOTE_SERVER $REMOTE_PORT <<EOF
user $REMOTE_USER $REMOTE_USER_PASS
type binary
passive...
8,162
Posted By hicksd8
Please do not bump posts, it's not allowed. ...
Please do not bump posts, it's not allowed.

As I said in my post#2, use of a .netrc file should avoid the need to supply a userid/passwd for the ftp server.

Yes, many times I have built a...
8,162
Posted By Corona688
If your FTP server and client support nlist,...
If your FTP server and client support nlist, that's the best way to get the file list. Not all of them do. You've got the idea, I think.

Nobody said that, and I'm not sure what you mean by it.
...
Forum: Fedora 12-21-2017
22,281
Posted By milhan
This is how you remove Java JDK on Fedora sudo...
This is how you remove Java JDK on Fedora
sudo dnf remove java-1.8.0-openjdk -y
8,162
Posted By Corona688
Those features deal with limitations in FTP's...
Those features deal with limitations in FTP's protocol, and aren't relevant anywhere else. You don't have those options, because sftp isn't ftp. You also don't need them for the same reason. sftp...
8,162
Posted By Corona688
No such thing, passwords is how ftp works. Even...
No such thing, passwords is how ftp works. Even the .netrc file contains passwords, though is safer than keeping them in your scripts themselves. It looks like this:

machine sitename.com
...
8,162
Posted By hicksd8
There's nothing wrong with using a .netrc to...
There's nothing wrong with using a .netrc to avoid the need to supply a ftp password in the script if you are comfortable with using ftp and its security risks in the first place.

For a .netrc...
1,375
Posted By Chubler_XL
function difftime(st,et) { split(st,sa,":") ...
function difftime(st,et) {
split(st,sa,":")
split(et,ea,":")
return "(" ea[1]*3600-sa[1]*3600 + ea[2]*60-sa[2]*60 + ea[3]-sa[3] " seconds)"
}
difftime(starttime, endtime) - function...
1,375
Posted By Chubler_XL
How about this: awk -F "[ \\\]]*" ' ...
How about this:

awk -F "[ \\\]]*" '
function difftime(st,et) {
split(st,sa,":")
split(et,ea,":")
return "(" ea[1]*3600-sa[1]*3600 + ea[2]*60-sa[2]*60 + ea[3]-sa[3] " seconds)"
}...
3,880
Posted By RavinderSingh13
Hello TechGyaann, Following may help you in...
Hello TechGyaann,

Following may help you in same.
1st:

tr ',' ' ' < Input_file
2nd:

awk '{gsub(/\,/," ",$0);print}' Input_file
Output will be as follows in both above codes.

xyz...
3,880
Posted By balajesuri
To me, sed seems a simpler alternative: ...
To me, sed seems a simpler alternative:
user@host~> sed 's/,/ /g' file
xyz pqrs.lmno NA NA NA NA NA NA NA
abcd pqrs.xyz NA NA NA NA NA NA NA
user@host~>Correction to your command:
awk -F","...
1,512
Posted By bakunin
These are actually two scenarios. If you...
These are actually two scenarios.

If you want to return the number of times a string is found within a file you take the "-c" ("count") option of grep:

# grep -c "text"...
1,512
Posted By disedorgue
Hi, try: grep -ic "avc"...
Hi, try:
grep -ic "avc" $DNA_PARM/Master_Graph_List.csv

Regards.
4,176
Posted By Don Cragun
Your immediate problems include: shell...
Your immediate problems include:

shell variables are not expanded when they appear between single quotes,
chk is a variable name (not a command name),
and the contents of that variable are a...
4,176
Posted By Don Cragun
Assuming your data is in a file named list: awk...
Assuming your data is in a file named list:
awk -v start='2015-12-23 22:30' '$1 " " $2 > start { print $NF }' list
seems to do what you want (with your sample input, producing the output):
file12...
2,150
Posted By Don Cragun
Here is a commented version of that script: ...
Here is a commented version of that script:
#!/bin/ksh
# Assign pathnames for 1st three files to be processed...
f1="Object.txt"
f2="Input.txt"
f3="Output.txt"
# If the 4th pathname to be...
2,150
Posted By Don Cragun
If I understand your requirements correctly (and...
If I understand your requirements correctly (and I'm not sure that I do), you could try something like:
#!/bin/ksh
f1="Object.txt"
f2="Input.txt"
f3="Output.txt"
[ -f another_object.txt ] &&...
50,467
Posted By vgersh99
f1: a b c d f2: e f g...
f1:

a
b
c
d


f2:

e
f
g



awk '{printf("file->[%s] NR->[%d] FNR->[%d] str->[%s]\n", FILENAME, NR, FNR, $0)}' f1 f2


output:
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 10:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy