Search Results

Search: Posts Made By: archimedes
3,277
Posted By archimedes
Hi setub, Welcome to the forum and the...
Hi setub,

Welcome to the forum and the beautiful world of shell scripting. :)
It is always a nice idea, though, to try and provide a sample snippet from your code so that our fellow advisers and...
8,845
Posted By archimedes
hi, the tar files are binary and so you...
hi,

the tar files are binary and so you cannot use the command cat directly on these .tar.gz files. If you do try to do that, it will show some binary characters on screen.

There is however a...
2,325
Posted By archimedes
hi, so sorry.. i mistook . ./scriptname ...
hi,

so sorry.. i mistook . ./scriptname for ../scriptname
Failed to see the " " in between

can you please run this cmd and paste the output:


ls -ltr scriptname


maybe because...
7,161
Posted By archimedes
hi.. try this ... input - filename is f7 ...
hi.. try this ...

input - filename is f7


http://10.0.0.1/query.exe
http://11y10x09w:80/howaboutme
http://192.168.100.190:1234/takeme.gpg
http://1923.168.100.190:1234/takeme.gpg

...
2,325
Posted By archimedes
hi... check if a script with the same name is...
hi... check if a script with the same name is present in the parent directory and that you have permissions on that script.

./scriptname
will try to execute the script in the current directory....
2,029
Posted By archimedes
if your lookup file is delimited, then you need...
if your lookup file is delimited, then you need to mention the FieldSeparator (FS) i.e. FS="|" in the BEGIN block before the while loop begins and then reassign it to FS = " " after the while loop...
15,374
Posted By archimedes
hi... can you paste part of that code that does...
hi... can you paste part of that code that does the printing ??

Regards,
A!

is it that you are storing the complete output in one variable ??
1,445
Posted By archimedes
hi.. try this... if [ $# != 2 ] then ...
hi.. try this...

if [ $# != 2 ]
then
echo "incorrect number of arguments. Exitting !!!"
exit 1;
fi

$# = the number of arguments that you are passing in the script.
here i...
9,078
Posted By archimedes
in this case as i mentioned earlier, the...
in this case as i mentioned earlier, the filepattern can be ERIC_VOUCHERDAT??, where ??=01,02,03....
If you have a configuration file, you can use this file pattern in that or directly in the...
2,029
Posted By archimedes
hello.. try this out -- Input HARRY ...
hello.. try this out --

Input

HARRY JON _____ AA M N
PETER PIE _____ BB M Y
SARAHAASJOHNASAS_____ CC F Y


this is the code below :


awk -F" " ' BEGIN {...
9,078
Posted By archimedes
hi, 1) a bad file must be formed when your...
hi,

1) a bad file must be formed when your data is not being loaded. Can you please paste the error displayed in that? Also, try using the timestamp as :

VDATE "to_date(:TIMESTAMP,...
10,442
Posted By archimedes
hi.. thank you for pointing out the error and...
hi.. thank you for pointing out the error and sorry for the delay...
try this out..

Input:

HEADER474687
D1356jkl ugbliuybikb 879870
898976098 9687680
D77656757 uhgliug liygoiygig...
1,523
Posted By archimedes
hi.. here is another solution.. for file...
hi.. here is another solution..


for file in `ls -1 *.transcript`
do
name=`basename $file ".transcript"`".wav"
if [ -f ${file} -a ! -f ${name} ]
then
rm -f $file
fi
done

...
10,442
Posted By archimedes
Hi... a solution using awk awk '{ if(NR == 1)...
Hi... a solution using awk
awk '{
if(NR == 1)
print $0;
else if(NR != 1)
{
if($0 !~ /^TRAILER/)
{
if($0 ~ /^D/)
{
printf "%s\n", $0 ; next
}
else
{
}
}
else
{
last=$0;
}
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 05:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy