10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks
I have a script I wrote that basically parses a bunch of config and xml files works out were to add in the new content then spits out the data into a new file.
It all works - apart from the xml and config file format in the new file
with XML files the original XML (that ends up in... (2 Replies)
Discussion started by: dfinch
2 Replies
2. Shell Programming and Scripting
Hi All,
I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for.
My Input data in inputfile.txt
19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies
3. Shell Programming and Scripting
Hello All,
I have one table contains:
Table1:
5
10
30
40
60
80
...
Table 2:
10
20
60
80 (7 Replies)
Discussion started by: krsnadasa
7 Replies
4. Shell Programming and Scripting
Input file:
58227131
50087390
57339526
40578034
65348841
55614853
64363217
44178559
Desired output file:
58227131 50087390
57339526 40578034
65348841 55614853
64363217 44178559
Command that I try: (4 Replies)
Discussion started by: perl_beginner
4 Replies
5. Shell Programming and Scripting
I am starting to learn how to use bash and I would like the script to do the following:
Asks the user for his/her name
Asks the user for one number
Asks the user for another number
Then it adds the two numbers,
Also multiply the two numbers
I have the part where you get the name, and I... (3 Replies)
Discussion started by: boyboy1212
3 Replies
6. Shell Programming and Scripting
Hi,
I am from File system back ground and doing File system testing on Linux, I need script that scirpt that create the different multiple types of .txt, device file and then copy to mount point /mnt/ dir and then verify the created files and copied files, if created files and copied files are... (4 Replies)
Discussion started by: manish_tcs_hp
4 Replies
7. Shell Programming and Scripting
Hello everybody,
I have a file containing some statistics regarding CPU usage. The file has this syntax :
Fri Jul 16 14:27:16 EEST 2010
Cpu(s): 15.2%us, 1.4%sy, 0.0%ni, 82.3%id, 0.1%wa, 0.0%hi, 0.9%si, 0.0%st
Fri Jul 16 15:02:17 EEST 2010
Cpu(s): 15.3%us, 1.4%sy, 0.0%ni, 82.3%id, ... (9 Replies)
Discussion started by: spiriad
9 Replies
8. Shell Programming and Scripting
Hi all, I currently have a script which uses read -p for user interaction. e.g.
read -p "New user? " user
Is it possible to have it so if the user enters nothing and just presses return it can resort to a specified value instead?
Thanks! :) (5 Replies)
Discussion started by: JayC89
5 Replies
9. Shell Programming and Scripting
All,
I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then
Insert file1 column2 to file2 column4 then create a new file.
File1:
12345 Sam
12346 Bob
12347 Bill
File2:... (1 Reply)
Discussion started by: darkoth
1 Replies
10. Shell Programming and Scripting
Hey, i need a bit of help with a question,
I am writing a script that will search a given directory for a particular type of file, which i have done, but we have to do it in such a way that we type in the directory name when we call the script. So, the script is called "demo2".
At the command... (3 Replies)
Discussion started by: ljdav2
3 Replies