Sponsored Content
Full Discussion: Ssh newbie
Top Forums UNIX for Beginners Questions & Answers Ssh newbie Post 303046274 by RudiC on Wednesday 29th of April 2020 08:59:04 AM
Old 04-29-2020
I can't quite follow this request, nor do I understand its relation to the title "Ssh newbie", but if you have a file name stub in a variable that, in real filenames, is followed by two digits, which in turn you want incremented, try
Code:
$ HN=$(ls $stub[0-9][0-9] | tail -1)
$ printf -vFN "$stub%02d" $((${HN##*[^0-9]} + 1))

$FN now has the filename with the number incremented by one.

Last edited by RudiC; 04-30-2020 at 04:29 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

2. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

3. Shell Programming and Scripting

perl newbie . &&..programming newbie

Hi, I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script. I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies

4. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

5. Shell Programming and Scripting

Using ssh to add register key on ssh server

Hi, I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies

6. Shell Programming and Scripting

Ssh = ssh expect and keep everything not change include parameter postion

I have write a script which contains ssh -p 12345 dcplatform@10.125.42.50 ssh 127.0.0.1 -p 5555 "$CMD" ssh root@$GUEST_IP "$CMD" before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position" I can post a... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

7. Shell Programming and Scripting

Check if file exists via ssh in ssh (nested)

I'm using redhat and have an odd issue with a nested ssh call. ssh -i ~/.ssh/transfer-key -q transfer@fserver1 ] && ssh -i ~/.ssh/transfer-key transfer@fserver1 "ssh -i ~/.ssh/sftp-key sftpin@10.0.0.1 ]" && ssh -i ~/.ssh/transfer-key transfer@fserver1 "scp -i ~/.ssh/sftp-key /home/S/outbox/*... (2 Replies)
Discussion started by: say170
2 Replies

8. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

9. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies
AMPLICONNOISE(1)					    AmpliconNoise Documentation 					  AMPLICONNOISE(1)

NAME
AmpliconNoise - remove noise from high throughput nucleotide sequence data VERSION
This documentation refers to version 1.22 SYNOPSIS
See /usr/share/doc/ampliconnoise/Doc.pdf.gz for details of how to run. DESCRIPTION
The following tools are included. Most of them have an MPI equivalent, for example SeqNoise has an equivalent SeqNoiseM which can be used with mpirun. FastaUnique - dereplicates fasta file -in string input file name Options: FCluster -in string distance input file name -out string output file stub Options: -r resolution -a average linkage -w use weights -i read identifiers -s scale dist. NDist - pairwise Needleman-Wunsch sequence distance matrix from a fasta file -in string fata file name Options: -i output identifiers Perseus - slays monsters -sin string seq file name Options: -tin string reference sequence file -a output alignments -d use imbalance -rin string lookup file name PyroDist - pairwise distance matrix from flowgrams -in string flow file name -out stub out file stub Options: -ni no index in dat file -rin string lookup file name PyroNoise - clusters flowgrams without alignments -din string flow file name -out string cluster input file name -lin string list file Options: -v verbose -c double initial cut-off -ni no index in dat file -s double precision -rin file lookup file name SeqDist - pairwise distance matrix from a fasta file -in string fasta file name Options: -i output identifiers -rin string lookup file name SeqNoise - clusters sequences -in string sequence file name -din string distance matrix file name -out string cluster input file name -lin string list file Options: -min mapping file -v verbose -c double initial cut-off -s double precision -rin string lookup file name SplitClusterEven -din string dat filename -min string map filename -tin string tree filename -s split size -m min size AUTHOR
All software by Chris Quince (quince@civil.gla.ac.uk) This manpage by Tim Booth (tbooth@ceh.ac.uk) LICENCE AND COPYRIGHT
Copyright (c) 2009 (quince@civil.gla.ac.uk). All rights reserved. Released under the Lesser GPL. Permission is granted for anyone to copy, use, or modify these programs and documents for purposes of research or education, provided this copyright notice is retained, and note is made of any changes that have been made. perl v5.12.4 2011-04-28 AMPLICONNOISE(1)
All times are GMT -4. The time now is 04:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy