10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have 1000 files names data1.txt through data1000.txt inside a folder. I want to write a script that will take each first line from the files and write them as output into a new file. How do I go about doing that? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
2. Shell Programming and Scripting
I have several bash scripts that write to an SQLite3 database at the same time. At some occasion the database returns: SQL error: database is locked.
How would be the best way, to make a process to wait until the data base is 'free' again. I tried:
sqlite3 test.db ".timeout 1000; update....."... (2 Replies)
Discussion started by: creamcheese
2 Replies
3. Shell Programming and Scripting
Hi all,
I need help in writing a script to edit a file
Here is the sample of my file
abc xxx 123
456
789
045
def yyy 987
678
098
cdf zzz 435
543
jhg vvv 987
765 (2 Replies)
Discussion started by: leo.maveriick
2 Replies
4. Shell Programming and Scripting
I am trying to prompt the user using tput command to read the information ( 5 last names, first names and grades) from the keyboard. Save the data in a file called student.txt. Sort the file by last name and display it on the screen
My pseudocode is as follow:
Pseudocode:
Initialize... (1 Reply)
Discussion started by: jestaton
1 Replies
5. Shell Programming and Scripting
Hi All,
Please help me in writing data to a file in one row.
In database there is a column which contains large data which does not fit in the file in one row. The column contains list of paths. I want to write these paths to a file in one row.
Please find the code below writes :
... (2 Replies)
Discussion started by: rajeshorpu
2 Replies
6. Programming
The attached file, credits.php, is part of our new (experimental) banking / credits system for this site.
I added a field bankfee in credits_transactions but it is not writing to the database (no PHP error).
Can someone take a look at the attached PHP file and see if they can find out why... (4 Replies)
Discussion started by: Neo
4 Replies
7. Shell Programming and Scripting
Hi, Can some some give ideas/help
how to write to a file.
i need to create a calender from the inputs given on command line i.e frm date,todate & -i is interval is given to write to a file.
-i is 1 then a calender is daily , if -i =2 then calender is alternate day
e.g
$1 ... (0 Replies)
Discussion started by: innocent
0 Replies
8. Shell Programming and Scripting
Hi,
At the moment i have a script where it asks the user if they want to create a file and what to put in the file. The problem is when the script is run the user inputs the information, though when they are finished typing what they want to be in the file there is no way for the program to know... (3 Replies)
Discussion started by: Jaken
3 Replies
9. UNIX for Advanced & Expert Users
I want to collect the database tables(Ex: Emp,Sal,Bonus...etc)
in a file & give this file at the command prompt, when prompted for the tables list at command prompt. How can i do that ?
Ex:- Import jason/jason1 tables=emp,sal,bonus log=j1.log
i want to change this into
Ex:- Import... (3 Replies)
Discussion started by: dreams5617
3 Replies
10. UNIX for Dummies Questions & Answers
Does anyone know how I can write a script file that reads 15 numbers and can find the average, maximum and minimum of the 15 numbers.
I'm new to UNIX 1 month into it, and (no) this is not for homework.
I'm reading UNIX unbounded and trying the practice questions and I've been working on... (19 Replies)
Discussion started by: lanboy_2005
19 Replies