hello ,
I have done some mistakes as you see the correctedone
#!/bin/sh
#ls -alR > filelist in sample dirctory strcuture get initially contents of the
#directory structure into filetestfile and load that load that file to test directory
#where you are running script and befor running...
Hello,
Try this i am not confident that it is solution as required.
Any way i havenot tested it properly.#!/bin/ksh
#directory structure into filetestfile and load that load that file to test directory
#where you are running script and befor running this script
tmp_filelist=`cat ./filelist `...
HEllo,
As you said it the output is not consistent with some of commands and their options.
AS a observed ls -l|cat - log.txt|tee log.txt isnot working
for me,as it is overwritting the contents of file instead of add at beg.it seems there is some limit for line above which it is not working...
Hello,
This command which i have given doesnot redirect the some of the syntact errors in script output.
that is why whenever there is some kind of error there the log.txt doenot contain any output.
do this:
1>make your script to show correct output.
2>give the executable permission for your...
Hello,
Try this
general format:
output of the csh script|cat - file_used|tee file_used.
for ex:if the command of your script islike this
var="hello"
echo $var---say this is the output
then
use this:
echo $var|cat - file_used|tee file_used
if file_used say contains =...
try this also,
but your question is wrong. %j doenot give you day of the year.but anyway it is giving something with trailing zero
ans: date +'%j'|cut -c 2,3
or
date +'%d' which gives the date.
Regards
Santosh.K.B
Hello try this,
this works for all kind of files in all working dir and subdirctories except source file in working dir.
we can modify it to work ony for subdirectory files and not for pwd.
#!/bin/ksh
#script to search through all the files in the subdirctories.
find . -type f >subdir_file...
Hello oznasuer,
seqfile contains
5995
5996
5997
5998
5999
6001
6002
#!/bin/ksh
#Script to find the missing sequence in file of numerals
tmpfile=`cat seqfile`
tmpfile2=`cat seqfile`
flag=0
echo the missing sequence is
for num in $tmpfile
do
tmpnum=$num
tmpnum=`expr $tmpnum + 1 `
for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.