9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
because it gives me this error if?
while read linea
do
#echo "Archivos Entrada: $linea"
largo=`awk '{print length($linea)}'`
echo "largo : $largo "
if ; then #Here's the problem, I take this line and it works
echo "a es igual a 1"
fi... (3 Replies)
Discussion started by: tricampeon81
3 Replies
2. Shell Programming and Scripting
Hi,
I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).
I want to pass this data (as argument) to curl command using system function.
But getting Too many arguments error due to length of string data(payloadBlock).
I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies
3. Shell Programming and Scripting
Hi guys,
I am trying to make a script that will archive all the folders (except NOARCHIVE folder) and then remove those folders:
cd my_specific_folder;
for f in *; do
if ; then
tar czf $f.tar.gz $f && rm -r $f;
fi;
done && echo "All the folders within my_specific_folder are... (3 Replies)
Discussion started by: emanresu
3 Replies
4. Shell Programming and Scripting
hi I have this code
a="a b c"
set -- $a
if ; then
echo empty
fi
why is it line 3 reports "test: [: too many arguments"? :wall:
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
5. Shell Programming and Scripting
Hello,
is it possible to give grep two documents to surche for? like
grep "test" /home/one.txt AND /home/two.txt ?
thanks (1 Reply)
Discussion started by: Cybertron
1 Replies
6. Shell Programming and Scripting
i don't know what's wrong with the code, says too many arguments in the first two if statements. how to change it? thx.
the file is like in this format:
;dfs;dfdsf;fsd ff dsf;dfdffdfd; -f2 should be only one word with no space, but could be like this 'n/a', '**ABC'
while read line; do
... (1 Reply)
Discussion started by: dtdt
1 Replies
7. Shell Programming and Scripting
Hi,
I am running a .csh shell and get this error.
set dir=/u21/oradata/SDE/cass
echo /u21/oradata/SDE/cass
/u21/oradata/SDE/cass
set compression=jpeg
set bustab=CASS_ORTHO2005
set keyword=cnty_2005
set resampling=bilinear
set image_list=/u21/oradata/SDE/cass/*.tif
Arguments too long.... (0 Replies)
Discussion started by: kburrows
0 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone,
I know this sounds stupid but on my Sun solaris machine I have csh script that finds all files 7 days older and then moves it to another area. The find works but the move I get "Arguments too long". I know that in c shell can not handel more 1706 arguments.
Can anyone give... (2 Replies)
Discussion started by: Peterh
2 Replies
9. Programming
I have a program written in C on HP-UX 11i. The program is as
below ...
long long a;
a = 12345678987654321;
printf ("%lld",a);
I compile the code using cc compiler on HP-UX using
-Ae +DD32 option as i want it to create a 32-bit binary.
But the... (1 Reply)
Discussion started by: Shobhit
1 Replies