Search Results

Search: Posts Made By: Link_
2,709
Posted By Link_
curl into a shell script (variable transmission): need help
Hey
I'm writting a little shell script, and I started using curl with it today.

I would like to login into a website using curl (--data argument).
This part is working, curl sent me the webpage...
5,841
Posted By Link_
Sorry about the quotes ;) I don't...
Sorry about the quotes ;)

I don't understand, my SIZE variable isn't executed when my script come back to the while line ?

I can't put the line SIZE =` ls -s text.txt` after the while because...
5,841
Posted By Link_
Do not understand why my while loop fail (bash)
Hi again :)
I still need your help now...


#!/bin/bash

SIZE=`ls -s text.txt`

while [ "$SIZE" != '0 text.txt' ]
do
[ my intructions ]
done


My problem is that the line "while ..."...
38,546
Posted By Link_
Thanks, it woked with test -s :) I will...
Thanks, it woked with test -s :)

I will rename my variable
38,546
Posted By Link_
Check if a text file is empty or not (using ls -s)
Hello,
I want to make a script which says if a text file is empty or not.
I tried two ways of making it, but I have problems with both of them.
Now I think that the better way is the ls -s...
Showing results 1 to 5 of 5

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