10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
2. Shell Programming and Scripting
Hello Folks,
I have a file named as date.dat present at /tmp/abc location which has following data -
20161030,20161031,20161101
I need to remove this line and replace it with something like below -
$param1,$param2,$param3
Param1, Param2 and param3 stores the date based on some calculation in... (1 Reply)
Discussion started by: ektubbe
1 Replies
3. Shell Programming and Scripting
I'm trying to create a ksh script that will ask the user for the port number. $PORT1 is the variable I want to use that will contain whatever numbers the user inputs. The script would edit ports.txt file, search and delete "./serv 110.1.0.1.$PORT1 200;=3" .
So if the user types 50243 then the... (5 Replies)
Discussion started by: seekryts15
5 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to automate hadoop installation procedure using shell script. It involves go to perticular directory... (3 Replies)
Discussion started by: Abdul Navaz
3 Replies
5. Shell Programming and Scripting
hi, could someone share a short script that would process a .txt file and do the following, for example the text file has this form
0:1.0 1:1.0 2:2.0 3:3.0 4:4.0 5:5.0 6:6.0 7:7.0 8:8.0 ... {newline}
9:9.0 10:10.0 11:11.0 12:12.0 13:13.0 14:14.0 15:15.0 16:16.0 17:17.0 ... {newline}
and I... (3 Replies)
Discussion started by: c_lady
3 Replies
6. Shell Programming and Scripting
i have a file called number which contains data as
1 2 3 4 5
6 7 8 9 0
9 8 7 6 5
4 3 2 1 0
0 1 2 3 4
needed a shell script to print the output as
1
7
7
1
4
and (2 Replies)
Discussion started by: jacky29
2 Replies
7. Shell Programming and Scripting
Hello,
I have a big file in wich I would like to rename inside this exactly the string '_ME' and not rename in case we have 'ABC_MELANGE'. Is there a way to do it by using a shell script?
Any tip will be apreciated.
The file is like described bellow, after using command more filename :
... (3 Replies)
Discussion started by: Titas
3 Replies
8. 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
9. Shell Programming and Scripting
Hi,
sample file looks like this..
<hp>
<name>
<detail>adsg</detail>
...
...
</name><ft>4264</ft>
</hp>
I need to edit the last but one line using perl script. I want the format to be ..
<hp>
<name>
<detail>adsg</detail>
...
...
</name> (9 Replies)
Discussion started by: meghana
9 Replies
10. Shell Programming and Scripting
Hello,
How would i go about editing a file using VI within a shell script please?
Basically, i want to open a file, clear it's contents and save the file.
I found this on the web using "ex" but can't seem to get it to work:
ex /home/oconnor/TOOLS/UNIXCMDS/test_ex <<eof_ex
dd /*i put... (2 Replies)
Discussion started by: bobk544
2 Replies