10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an issue that hope someone will be able to help me with....
I'm using a while-read loop to read lines from a file that contain variables, and I want the variables substituted, but I can't get it to work - the below example with explain:
while read line
do
echo $line
... (5 Replies)
Discussion started by: AndyG
5 Replies
2. Shell Programming and Scripting
Hello
I have a text file with the next pattern
Name,Year,Grade1,Grade2,Grade3
Name,Year,Grade1,Grade2,Grade3
Name,Year,Grade1,Grade2,Grade3
I want to assign to external variables the grades using the awk method.
After i read the file line by line in order to get the grades i use this
... (2 Replies)
Discussion started by: Spleshmen
2 Replies
3. Shell Programming and Scripting
Hi!
I am still fairly new to shell programming, but I have taken an interest to it and want to try some new stuff.
I intend to make a shell script (using bash) to read a file on a remote system, then do some work on it on the local system and display it.
In the long run I want to have a... (9 Replies)
Discussion started by: aaOzymandias
9 Replies
4. Shell Programming and Scripting
Hi Gurus,
I have a file named log with 2 lines
Each line is a file name. eg
$ cat log
monday
tuesday
I need to read log and assign each output(filename) to a different variable.
The following doesn't work:-
while read A B
do
echo " a is ${A} "
echo " b is ${B} "
done <... (6 Replies)
Discussion started by: wisdom
6 Replies
5. Shell Programming and Scripting
Hi....
cd command is not working when dual string drive/volume name is passed to cd through variables.......
For Ex....
y=/Volumes/Backup\ vipin/
cd $y
the above command gives error.......
anyone with a genuine solution ? (16 Replies)
Discussion started by: vipinchauhan222
16 Replies
6. Filesystems, Disks and Memory
Hello,
I am facing a hard disk drive reading problem since last one month and not able to resolve it.
The thing is I purchased external USB hard disk (seagate 40 gb) 2 years back.And uptil now its working perfectly fine. But suddenly one day I am not able to read my data. The problem goes like... (1 Reply)
Discussion started by: albertspade
1 Replies
7. Shell Programming and Scripting
Hi All,
I have the following problem:
1. I have a file containing a line:
a,b,d,${d},e,f
2. From within a script I grep the file for '^a,' to get the line
3. I obtain the fourth field as follows:
Field4="$( print -r $fileEntry | cut -d, -f4 )"
4. The script exports variables at the... (1 Reply)
Discussion started by: oneillc9
1 Replies
8. Shell Programming and Scripting
I'm trying to get awk to do arithmetic functions with external variables and I'm getting an error that I cannot figure out how to fix.
Insight would be appreciated
money=$1
rate1=$(awk -F"\t " '/'$converting'/{print $3}' convert.table)
rate2=$(awk -F"\t"... (2 Replies)
Discussion started by: DKNUCKLES
2 Replies
9. Shell Programming and Scripting
How do i use a config.txt to recursively pass a set of variables to a shell script
eg my config.txt looks like this :
path=c://dataset/set1
v1= a.bin
v2= b.bin
path=c://dataset/set2
v1= xy.bin
v2= abc.bin
..................
and so on .
and my testscript : (2 Replies)
Discussion started by: pradsh
2 Replies
10. Shell Programming and Scripting
Hi,
Could anyone help me in understanding what I am missing..
I have a text file with the following info.
INFILE=>
#Name Variable=<value>
#---------------------------------
name1 inargs="-a Filename1.$VAR.csv -f Filename2.$VAR.csv -c File.c"
name1 ... (4 Replies)
Discussion started by: ttshell
4 Replies