Hi, I am trying to multiply column#1 with column#2 using a shell script. How can I make a for-loop script using 1st column as "i" and the second column as "j" from the following file?
I have the following script that I use to copy a list of files from one dir to another,
Code:
#!/usr/bin/bash
# $1=filename of file with the list of files to copy
# $2=column header for col in list file with filenames (filePath in most cases)
# $3=src dir
# $3=destination dir
FILE_LIST="$1"
FILE_FIELD="$2"
SOURCE_DIR="$3"
DEST_DIR="$4"
if [ $# -ne 4 ]
First, my script:
Code:
meow="Wonderful Gentlemen"
for file in $(ls *jpg)
do
query=$(exiv2 -g Iptc.Application2.FixtureId $file)
jobid=$(echo $query | cut -d" " -f4-)
echo -e "Read $file. Next!"
Heh, working on a bash script to chop up a file based on its filesize.
while writing a script m not able to convert string into a number therefore it is not picking the write if condition
pls help
Code:
#!/bin/sh
echo "this game is about selecting number and getting lucky"
echo " the number are 1 2 3 4 5 and 0 to exit"
read $a1
if [ "$a1" = 1 ]; then
echo "NUMBER IS NOT CO
Hi All,
Thanks in Advance
I wrote the following code
Code:
if [ $VERSION == 1.1 ]
then
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
do
FILE="SDP_DUMP_$i.csv"
&nb
hi
i am trying to write a script in which i want to pass a value and that value should be
compare with a value which was already define in a script .
if the value is correct the sj=how access esle show access denied.
below is my script: this is not working.
Code:
#!/bin/ksh
echo "The value of the first argument to the script :" $1
p=$1
passwod="asr"
Code of baul :)
Code:
/*
* Hanx [Proyecto Fedora Peru] wth Code
* crc.c - app
*
* This program is private version, for anti-educational purposes and without any
* explicit or implicit warranty; in no event shall the author or
* contributors be liable for any direct, indirect or incidetal damages
hi
i have written a script for reading a csv file and creating a flat file, suggest if this script can be optimized
Code:
#----------------
FILENAME="$1"
SCRIPT=$(basename $0)
#-----------------------------------------//
function usage
{
echo "\nUSAGE: $THIS_SCRIPT file_to_process\n"
echo "OR - To send the output to a file use: "
echo "\n$THIS_SCR