10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys
Please can you help me to create a file using the following inputs
2351 first input
2339 second input
all this rows need to have the value 0 in front
2338 third input
2333 fourth input
all this rows need to have the value 1 in front
count all the rows in the file and insert the... (10 Replies)
Discussion started by: jiam912
10 Replies
3. Shell Programming and Scripting
Hi All,
I was trying to generate GUI using shell script. After long search I found the utility called “dialog”. Using this utility I am able to generate window to collect the input.
dialog --inputbox "Input 1" 10 45
dialog --inputbox "Input 2" 10 45
dialog --inputbox "Input 3" 10 45
Using... (2 Replies)
Discussion started by: kalpeer
2 Replies
4. Shell Programming and Scripting
I have file A.txt
File A
1,Hi,234
2,Hello,345
1,Kal,980,
9,KJ,098
2,de,098
..
...
I have more then 600 lines...
I want separate the files as per 150 line.
First 150 lines ----File A1.xtx
Second 150 lines ---File A2.txt
Third 150 lines----File A3.txt.
... (4 Replies)
Discussion started by: asavaliya
4 Replies
5. Shell Programming and Scripting
Hi Dears,
I have one script to create new users with information in one plain text file. This script will read all lines in the file and create one users for one line.
Sample file:
#action;login,full name title,expire date,project
+;gmwen,Bruce Wen QA,04/01/2012,BT
+;xxdeng,Shown Deng... (4 Replies)
Discussion started by: crest.boy
4 Replies
6. Shell Programming and Scripting
I need some help to write a ksh script.
My code so far (pretty bad, sorry):
#! /bin/ksh
echo "Calculate average"
UserDecision=y
while test $UserDecision = y
do
echo "Enter a number: "
read Number1
echo "Enter a number: "
read Number2
echo "Do you want to enter another number?... (2 Replies)
Discussion started by: johnagar
2 Replies
7. Shell Programming and Scripting
Hi All,
Please ignore if terminology used is incorrect as I am new to Unix.
I want to create a Multi user input form which looks something like this:
ABCD TOOL
Logged User: abcd12 ... (4 Replies)
Discussion started by: vidhu0007
4 Replies
8. Shell Programming and Scripting
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Discussion started by: bhargavkr
2 Replies
9. Shell Programming and Scripting
Hi
How to create a directory structure with getting input from a file.
I have file in that following lines are written.
./activemq-4.1.2/activemq-core-4.1.2.jar
./activemq-4.1.2/backport-util-concurrent-2.1.jar
./camel-1.4.0/apache-camel-1.4.0.jar
./camel-1.4.0/lib/activation-1.1.jar... (12 Replies)
Discussion started by: itsjoy2u
12 Replies
10. UNIX for Dummies Questions & Answers
I would like to prompt for input and then use it as a variable in a script.
Something like this.
#!/bin/ksh
echo "What is your name?: \c"
read response
echo "Your name is $reply" >file.txt
done
exit 0
What am I missing?
Thanks, (7 Replies)
Discussion started by: darthur
7 Replies