10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
While searching for the question, I found some answers but my implementation is not giving expected output.
I have two files; one is sourcefile, other is named template.
What I want to do is to search each line in template, when found all columns, cut the matching line from source... (4 Replies)
Discussion started by: baris35
2. Shell Programming and Scripting
i need a bash script.
I have a 3 file named Milano, Torino, Firenze
Into file i have:
EmilioThe output should be a all_city.csv file like: (3 Replies)
Discussion started by: kamose
3. Shell Programming and Scripting
I have a variable and assigned the following values
I need to read this variable from backward and stop read when I get first underscore (_)
In this scenario I should get 211
Kris (3 Replies)
Discussion started by: mkris
4. Shell Programming and Scripting
I am using below code for reading from a file and assigning the values to a variable , but it is loosing the value after the loop , please suggest to retain the value of the variable after the loop ,
while IFS=: read -r line
echo 'printing line variable ' $line... (1 Reply)
Discussion started by: ParthThakkar
5. Shell Programming and Scripting
I need to read temp.$i file content line by line through while loop but somehow the '\' do not appear in output.. Can someone guide how to read this exact content line by line in unix :
cat temp.$i | head -1 # the file content appears fine
while... (13 Replies)
Discussion started by: Prev
6. Shell Programming and Scripting
Hello, I am quite new in shell scripting and I would like to write a little scritp to run a program on some parameters files.
all my parameters files are in the same directory, so pick them up with
ls *.para >>dirafter that I have a dir file like that:
I... (2 Replies)
Discussion started by: shadok
7. Shell Programming and Scripting
I have a file output.txt with values as below:
I want to know how to read this file and then assign each value to a variable.
So that I can use this VAR1 and Var2 in the shell script for further processing.... (3 Replies)
Discussion started by: shyamaladevi
8. Shell Programming and Scripting
I have gps receiver log..its giving readings .like below
Connected to localhost.
Escape character is '^]'.
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
9. Shell Programming and Scripting
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran4.P... (7 Replies)
Discussion started by: tanit
10. UNIX for Dummies Questions & Answers
I'm quite new to unix and hope that someone can help me on this.
I'm using csh.
Below is what i intend to do.
1. I stored some data in a file.
2. I intend to read the file line by line and store each line of data into a variable, so that i can used it later.
Anyone have any... (4 Replies)
Discussion started by: seijihiko