9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following script
#!/bin/sh
Usage () {
echo "Usage: $0 <config_file>"
echo "Example: ./sftp_ondemand_daily.sh /export/data/mbsesb/config/ond
emand.cfg /export/data/mbsesb/config/filename.lst"
exit 1
}
if
then
Usage
fi
... (6 Replies)
Discussion started by: digioleg54
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
When doing an ls -l, why is it that I have the date and time on some of the files and directory, while others don't? :wall:
Is there a way to show the date and time using a different command?
OS is Linux and Solaris.
Any response much appreciated. Thanks in advance. (1 Reply)
Discussion started by: newbie_01
1 Replies
3. Shell Programming and Scripting
Hi
I have a directory where i have 10 -12 files, i want to store word count in seperate file without any file name.
i have written the logic which needs to be corrected
filename.txt
for i in /backup/temp/rajesh/12Apr2012_South *.LOG
do
#echo "File size of $i is"
wc -l $i... (5 Replies)
Discussion started by: guddu_12
5 Replies
4. UNIX for Advanced & Expert Users
Hi there, finally i'm installed Sco Foxbase 2.1.2d over my Sco Open Server 5.0.7v server.
Well at this point almost is working fine, but, when i Run mi application i receive the next error:
"sh: the_name_of_file": does not exist".
I checked it over the Hard Disk and the file exist, the... (1 Reply)
Discussion started by: danilosevilla
1 Replies
5. Shell Programming and Scripting
I hope this isn't as silly as it sounds from the title of the thread.
I have software that outputs files where the name starts with a real number followed by underscore as a prefix to an input file name. These will list in the directory with the file with the smallest real number prefix as the... (5 Replies)
Discussion started by: LMHmedchem
5 Replies
6. Shell Programming and Scripting
Hi all,
I have a directory containing many subdirectories each named like KOG#### where # represents any digit 0-9. There are several files in each KOG#### folder but the one I care about is named like KOG####_final.fasta. I am trying to write a script to copy all of the KOG####_final.fasta... (3 Replies)
Discussion started by: kmkocot
3 Replies
7. Shell Programming and Scripting
I have to ftp a file from a directory in Windows, I need to be able to ftp the last file that was put in the directory, the only thing I know about that file is that the 4 first digits are always the same (3520) then it is a _5(more digits), random digits, so it will be something like this... (1 Reply)
Discussion started by: rechever
1 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
I have a file system.tgz. I want to make changes inside this archive but before that, I want to be sure I recompress it in the exact same format.
So I did the following:
me:~# # Duplicate the archive ---------------------------------
me:~# cp system.tgz system.01.tgz
me:~# ls -l... (4 Replies)
Discussion started by: chebarbudo
4 Replies
9. Shell Programming and Scripting
Hi everyone,
I will be downloading a file every day with the name in this format
SCA20060303_17514_IN.TXT
And I need to rename it to
SCA20060303_IN.TXT
Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I... (9 Replies)
Discussion started by: propel
9 Replies