1,817 Topics
| |
Hi i need to have a update for a file that updates only the last modified content from another file.... say for example....if file A is having content like . . . hatxxxx catxxxx ratxxxx and file B(the file to be updated is having content as hatxxxx catxxxx then file … | |
Hi, I have a script, when I run it The output overlaps : Example Instead of saying Canadian 1.00 Dollar it would say something Canadian Dollar00 I also need to know how to find the amount of decimal places in a variable and also how to check if a variable … | |
advance happy new year to all, i am having a script.The purpose of the scripts is as follows.If the current month is march,june,september or december ,increment flag should be set to '1' otherwise increment flag should be set to '2'.the script is as follows month= date +"%m" if [ "$month" … | |
Im having some problems to write a shell script which will give a certain type of file in the current directory. I.e if i want to delete a certain type of extensions like .psd or jpeg, i m having some problem in logic to make a shell script. The script … | |
HI All, I am Gurudev and this is my first post in this forum. I am software test engineer. Now a days I am trying to do automation for out ADSL product line testing. So I need to do some programming. I have installed Procomm Plus and would like to … | |
OK - I'm new to all of this. I need to create multiple files from a list. For example Myfile1.php becomes myfile2.php, myfile3.php, myfile4.php When my list is 2 3 4 I also need to do a global find replace. I have found enough examples of doing that online I … | |
hi friend, I am have too this problem (GETOPENFILENAME), only that I use AutoIt, my ask myself if you can resolve the problem for other side. if your code work correctly this will being very util for my. well. If I can resolve the problem I write the solution in … | |
the code is given as #!/bin/sh i=1; while [ $i -le 5 ] do echo "welcome $i times"; i= 'expr $i + 1 '; done it enters into infinite loop and does not increment the i variable plz suggest something exit 0; | |
i have installed cygwin with vim and vi editor but when i type into those editor nothing gets written and message comes that no string under cursor plz help somebody | |
Hello, I would like to use a simple "if then" test to check if an argument to a command begins with "http://" as follows: if [[ $2 == [url]http://*[/url] ]]; then command fi but the wildcard just seems to be ignored, ie., it will only execute the command if the … | |
Hi all, I am new to shell script and really help. I need to connect to MySQL and do some proccessing. How can i do that? Thanks | |
Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has … | |
I have an email log that needs some parsing. Can anyone help me to use sed or awk to parse this log and return only the domain names, listing them only once and ignoring case? Dec 19 14:59:09 host53a pop3d: LOGIN: DEBUG: ip=[::ffff:192.168.1.1], command=USER Dec 19 14:59:09 host53a pop3d: LOGIN: … | |
HI I would likt to create input files for testing, format is like this INPUT Format DISP NUM BYTES Desc 0 4 CODE 4 10 EMP NO 14 3 AGE 17 1 SEX which will be used for creating flat files ( data in excel file). OUTPUT file should be … | |
HI I would likt to create input files for testing, format is like this INPUT Format DISP NUM BYTES Desc 0 4 CODE 4 10 EMP NO 14 3 AGE 17 1 SEX which will be used for creating flat files ( data in excel file). OUTPUT file should be … | |
Hi, I need some information regarding the APIs to use, to get the drive letter, if I know the label of that drive. For eg, my hard disk has been partitioned into 3 drives, C:, D:, E:. The labels (label1, label2, label3 )for these drives have been assigned dynamically. I … | |
In my script I need to increment a real variable in a loop, which outputs its value to a file. I donno how to do this. Can any one help me in this regard? Thanks | |
#I'm quite new to scripting and my boss has asked me to solve a simple problem and sadly, I can't figure out how to do it. Any help is appreciated very much. #The following is a small shell script and the output that it produces for google.com. #!/bin/sh whois $1 … | |
I have an output in one format that I need to basically read line by line and reformat into another file. I was originally going to try do this in Java, but Java does not have a lot of good classes for text processing. Here is an example of my … | |
I need script for pinging the machines in subnet make list of alive hosts with there OS version redirected in a file. I am from System admin field and not aware of scripting and also beginner of UNIX. Thanks in advance. | |
I am studing c shell and I want to know how to wirte code please, if there is one has it can he send it on my email ? | |
I have a Linux web server that will have a flash form to process user information. This creates a text file in a directory outside of the public area using the date and time for the filename. What I need is this, whenever a file is created in that directory … | |
I need a shell script to simultaneously run multiple instances of a compiled c code can some one please help i'm using BASH | |
#!/bin/bash # Bash script that will produce a text file that has a list of the files in the present working directory cd /bin ls -d ls -d >>file.txt #!/bin/bash #Bash script that will copy all the files in one directory to another directory ls -d mkdir /EgorDir cp*.*ls-d /EgorDir … | |
Hi Guys, I managed to patch together some code but now im a little stuck with getting through the rest of it, i want be able to use a script to start, stop, restart and update a cs server, under niether is what i have so far, to update the … | |
ive been reading up tutorials from this website. but i don really understand how to do this to my program. ive a filename name passwordFile. and my program that i wrote using shell script can see online current users. but ive no idea how to read it into a file. … | |
Below script works perfectly fine from command line, but when I run through browser I am not getting anything inside my $dt. Because of this its always going inside failure scenario. My procedure is going to return either Success / Failed output. Can anybody tell me where I am messing … | |
Hey Folks. I have to write a script that will basically take input from 3 different files which contain the following: product (file contains the following - FS=".") -product ID (Int number) -description (alphanumeric text) -price (floating pt. number, with 2 sig. digits) sales (file contains the following - FS=",") … | |
Hi all; I'm stuck with this simple awk script,i need to group the lines which the position of 28 length 3 (if the line not starts with 0)that contains "688" into 1 group and other than "688" into another group. My problem is the script only read other than "688" … |
The End.