Search Results

Search: Posts Made By: Arun_Linux
6,638
Posted By Arun_Linux
cat /usr/local/data/sales/taxware/indata/stepprod...
cat /usr/local/data/sales/taxware/indata/stepprod |wc -l | xargs echo stepprod
918
Posted By Arun_Linux
Try this: while read line do echo...
Try this:

while read line
do
echo compressing $line
gzip -f $line
done < mycompress.tmp
9,293
Posted By Arun_Linux
use a while loop. while true do echo...
use a while loop.

while true
do
echo "enter directory for output file [e.g: /home/admin/dst/]:"
read OUTPUTFILE
if [ ! -d $OUTPUTFILE ] ;
then
echo "ERROR: invalid...
55,891
Posted By Arun_Linux
If you want to capture the raw output then this...
If you want to capture the raw output then this might help,

x = `ssh -f ${SOURCE_SERV} ls -l ${SOURCE_FOLDER/${FILE}`

x will contain the file name if it exists else it will be empty.
17,594
Posted By Arun_Linux
This too should work.. hope this is simple.. ...
This too should work.. hope this is simple..

add=0
for i in $@
do
add=`expr $i + $add`
done
echo "sum is: $add"

./add.sh 1 4 5
sum is: 10
1,213
Posted By Arun_Linux
for d in `ls $TEST_PATH | grep -v "\.abc"` do ...
for d in `ls $TEST_PATH | grep -v "\.abc"`
do
cp -R $d $PWD
done

That was for bash.

Here is csh

foreach d ( `ls $TEST_PATH | grep -v "\.abc"`)
cp -R $d $PWD
end
1,612
Posted By Arun_Linux
zenity or kdialogs are the best solution to get...
zenity or kdialogs are the best solution to get GUI in a shell script.

May be if you are looking a solution in command line then this should do the needful.

#!/bin/bash
echo "Press 1 to...
Showing results 1 to 7 of 7

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