Search Results

Search: Posts Made By: Nik44
2,313
Posted By Nik44
How to sFTP within a script?
I'm trying to run an sFTP command within my bash shell script but not sure of the correct code.

I'm looking to use:

sftp -b /dev/fd/0 remotehost <<EOF
cd pub
ascii
put filename.txt...
2,485
Posted By Nik44
This for a unix bash script. When there...
This for a unix bash script.

When there is a match between a pair of letters AND corresponding counts between the two files (if "CC" is 3 in file1 and "CC" is also 3 in file2) then I would like...
2,485
Posted By Nik44
Apologies, probably didn't explain as well as I...
Apologies, probably didn't explain as well as I could have.

There is effectively no output. What I want to happen is where there is a count match for a pair of letters in each file, I want this...
2,485
Posted By Nik44
Compare values in two different files
Hello,

I have output in one file that looks like:

AA 3
BB 1
CC 3
DD 6
EE 2
FF 6 And output in another file that looks like:

1 EE
3 CC
2 AA I basically want to be able to match the...
3,025
Posted By Nik44
Thanks Ravinder. The command executes...
Thanks Ravinder.

The command executes without any issues, however doesn't seem to have altered the file (is identical as to pre the command). Is this perhaps because my data includes literal...
3,025
Posted By Nik44
Thanks for the reponses! I've gone for the more...
Thanks for the reponses! I've gone for the more straight forward cut option as it provides the desired output.

However I forgot to add to this question... Is there a way of refining this...
3,025
Posted By Nik44
Grouping and counting
Hello,

I would like to group/sort a file of records by a particular field and then count how many records belong in that grouping.

For example say I have the following data:
...
Showing results 1 to 7 of 7

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