10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/sh
Today=date '+%Y%m%d'
for file in `ls *.csv *txt`
do
echo "Start woprking with ${file}"
if ; then
do something
elif ; then
do something
else
echo "Unkniowned file name"
... (6 Replies)
Discussion started by: digioleg54
6 Replies
2. Shell Programming and Scripting
Hello,
I'm on a remote computer by SSH. How can I get the output of "cat file" into a file on the local computer?
I cannot use scp, because it's blocked.
something like:
ssh root@remote_maschine "cat /file" > /locale_machine/file
:rolleyes: (2 Replies)
Discussion started by: borsti007
2 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
Hi friend,
i have written script as below to check the file existance. but i got error
path="/k/p1100/users/jewel/Output"
FILENAME=`ls -lrt $path/*HT|tail -1|cut -d "/" -f 8`
if ; then
echo "$FILENAME is available "
chmod 755 $path/$FILENAME
/usr/bin/scp... (0 Replies)
Discussion started by: Jewel
0 Replies
5. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
6. UNIX for Dummies Questions & Answers
I have a file with approximately 262,000 fields and I want to split it according to pairs of fields. The fields have headers and I want to create smaller files with just the columns between the fields (specified fields inclusive).
For example, I just want the columns "set" and "test", with the... (3 Replies)
Discussion started by: etownbetty
3 Replies
7. UNIX for Dummies Questions & Answers
Hi there.
reading the if entry from man, i get this:
-f file True if file exists and is a regular file.
What is exactly a regular file ?
Thanks,
--- 435 Gavea --- (3 Replies)
Discussion started by: 435 Gavea
3 Replies
8. UNIX for Advanced & Expert Users
Hi all,
I've just installed egd ssh zlib and ssl on a server:
$ uname -a
SunOS su214tos 5.8 Generic_108528-11 sun4d sparc SUNW,SPARCserver-1000
When i want to execute the /usr/local/sbin/sshd, i get the following:
PRNG is not seeded...
How do i seed the PRNG?
Thanx
Jason (1 Reply)
Discussion started by: penguin-friend
1 Replies
9. UNIX for Advanced & Expert Users
I need some help... What use is there to the file prng_seed under Solaris? (2 Replies)
Discussion started by: penguin-friend
2 Replies
10. UNIX for Dummies Questions & Answers
hi,
I am reading 'the design of the unix os' by Bach and I find the 'regular file structure' details with the 'direct and indirect blocks of the inode' difficult to understand.
Thanks (2 Replies)
Discussion started by: ramyar
2 Replies