07-04-2013
Thanks
It is GNU/Unix
I tried all of the above syntax. Still not working
Thanks,
Preeti
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my input file contains thousands of lines like below
234A dept of education
9788 dept of commerce
8677 dept of engineering
How do i add a delimeter ':' after FIRST 4 CHARACTERS in a line
234A:dept of education
9788:dept of commerce
8677:dept of engineering (7 Replies)
Discussion started by: systemsb
7 Replies
2. Shell Programming and Scripting
Hello,
in my script i have this lines of code in a while cycle:
..
let j=i+1
t_prod_$i = `cat myfile.csv | grep world | cut -d ";" -f$j`
let i+=1
...
So if i try an echo $t_prod_$i at the end of the cycle i cannot see
the right value obtained by `cat myfile.csv | grep world |... (5 Replies)
Discussion started by: drain
5 Replies
3. Shell Programming and Scripting
Hi,
I have a variable $ID=40 and I need to build a string like
40 40 40 40 40 40
so repeating ID 'n' times separated by spaces.
Any help?
Thanks
Sarah (2 Replies)
Discussion started by: f_o_555
2 Replies
4. Shell Programming and Scripting
Hi All,
I need to concatenate the values in the array into a variable. Currently the code is :
for (( i=1 ; i <= $minCount ; i++ ))
do
var="${var}""${sample_file}"
done
The output is :
/tmp/1/tmp/2/tmp/3/tmp/4/tmp/5/tmp/6/tmp/7/tmp/8/tmp/9/tmp/10
I need a space between... (1 Reply)
Discussion started by: sh_kk
1 Replies
5. Shell Programming and Scripting
Hello,
Trying to concatenate the following using bourne shell:
# !/bin/bash
# this works in bash shell e.g. get the results I am expecting
fnTmp=C$cindex.$station_0.$station_1.$station_3.$ts.tmp
#
# under !/bin/sh
# the results are not the same
Any assistance would be... (8 Replies)
Discussion started by: LAVco
8 Replies
6. Shell Programming and Scripting
#! /bin/csh
set tt=12345_UMR_BH452_3_2.txt
set rr=`echo $tt | cut -d_ -f1`
set rr1=welcome
set ff=$rr $rr1
echo $ff
why $ff returned only 12345 and not 12345welcome? thanks (2 Replies)
Discussion started by: jdsignature88
2 Replies
7. Shell Programming and Scripting
Hi all, I'm trying to build a variable name automatically through a for loop for a script I'm working on, basically I want to build the variables named: $JVM_HOME0 or $JVM_HOME1 so that I can loop through some file copy/deletes and a server restart once completed. With the code below, I get this... (3 Replies)
Discussion started by: hydroponx
3 Replies
8. Shell Programming and Scripting
Hi,
I have two files.
cat file.txt
a
b
c
d
cat file1.txt
j
k
l
m
I need the output as
a:j (12 Replies)
Discussion started by: nareshkumar522
12 Replies
9. Shell Programming and Scripting
Hi there,
I'm writing a basic script where I want to make a string of 2 numeric fields from a file, which I have done, but the behavior is rather confusing.
I have a file of random values such as:
1 2
3 4
5 6
7 8
9 10
and my awk code is:
BEGIN { FS = " " }
{ str = str $1 $2 }
END {... (7 Replies)
Discussion started by: HMChadwick
7 Replies
10. Shell Programming and Scripting
Hi,
I was trying to work on a file which had the following data format
1 hi
1 this
1 is
1 john
2 hello
3 test
3 case
the expected output file is the below
1 hi, this, is, john
2 hello
3 test, case
I tried using awk or while read, but I couldnt... (13 Replies)
Discussion started by: karthikbhuvana
13 Replies
LEARN ABOUT DEBIAN
cryptcat
cryptcat(1) Cryptcat cryptcat(1)
NAME
cryptcat - twofish encryption enabled version of nc(1)
SYNOPSIS
cryptcat -k secret [-options] hostname port[s] [ports]
cryptcat -k secret -l -p port [-options] [hostname] [port]
DESCRIPTION
This manual page documents briefly the cryptcat command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page. It only documents the features specific to cryptcat and not the features that are described
at length in the manpage for nc(1).
If you do not know nc then the chances are you won't have much use for this manpage.
cryptcat can act as a tcp or udp client or server - connecting to or listening on a socket, while otherwise working as the standard Unix
command cat(1).
cryptcat takes a password as a salt to encrypt the data being sent over the connection. Without a specified password cryptcat will default
to the hardcoded password ``metallica''. Needless to say, failure to specify a different password makes the connection as good as unen-
crypted.
OPTIONS
This programs does not follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of the
options specific to cryptcat is included below.
-h
Show summary of options.
-k secret password
Change the shared secret password to be used to establish a connection.
BUGS
This version of cryptcat does not support the -e command command line option available in some versions of nc.
SEE ALSO
nc(1), cat(1).
/usr/share/doc/cryptcat/README.gz
/usr/share/doc/cryptcat/README.cryptcat
/usr/share/doc/cryptcat/README.Debian
AUTHOR
The original netcat was written by hobbit@avian.org.
cryptcat is the work of farm9 <info@farm9.org> with the help of Dan F, Jeff Nathan, Matt W, Frank Knobbe, Dragos, Bill Weiss, Jimmy.
This manual page was written by Lars Bahner <bahner@debian.org> for Debian.
Debian GNU/Linux August 9, 2001 cryptcat(1)