1,978 Topics

Member Avatar for
Member Avatar for mjgelinas

Hello, Wondering if anyone knows of a certain script / solution... I need a script that will download all the files from an FTP server recursively to the local machine and delete the files and folders from the FTP server after it downloads each one. This script will run every …

Member Avatar for mjgelinas
0
88
Member Avatar for dave_nithis

I want a sample Date validation script using if loops. The script should first compare "year".If the year is lesser than the current year,It should go for "month" checking. I have the script that splits the date into year,month and date.I want only the checking part. My if loop checking …

Member Avatar for jim mcnamara
0
113
Member Avatar for spikywits

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 …

Member Avatar for radoulov
0
113
Member Avatar for lankan

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 …

Member Avatar for eggi
0
112
Member Avatar for mark0420
Member Avatar for rajarp

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" …

Member Avatar for rajarp
0
112
Member Avatar for kilogul

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 …

Member Avatar for eggi
0
112
Member Avatar for gurudev

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 …

0
58
Member Avatar for Brik

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 …

Member Avatar for Brik
0
82
Member Avatar for buzonjl

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 …

0
58
Member Avatar for mrityunjay22

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;

Member Avatar for eggi
0
97
Member Avatar for mrityunjay22

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

Member Avatar for eggi
0
12K
Member Avatar for Allasso

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 …

Member Avatar for eggi
0
107
Member Avatar for LCY35

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

Member Avatar for masijade
0
43
Member Avatar for Drags111

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 …

Member Avatar for eggi
0
113
Member Avatar for jjamd64

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: …

Member Avatar for radoulov
0
84
Member Avatar for madankumar

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 …

Member Avatar for masijade
0
72
Member Avatar for madankumar

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 …

Member Avatar for masijade
0
36
Member Avatar for satya.vijai

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 …

Member Avatar for Ancient Dragon
0
69
Member Avatar for srikanth_dhondi

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

Member Avatar for eggi
0
76
Member Avatar for LeoNidan2007

Folks, I'm working on an admin script that will look at a servers' scheduled tasks and verify that #1; it's enabled or disable; #2; alert if disabled; and #3; continue to monitor the sheduled tasks 24X7. So, I've created this script that is suppose to do this; however it's not …

0
55
Member Avatar for jjamd64

#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 …

Member Avatar for radoulov
0
127
Member Avatar for ilikecheese

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 …

Member Avatar for radoulov
0
101
Member Avatar for 18041980

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.

Member Avatar for 18041980
0
213
Member Avatar for therwi

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 ?

0
73
Member Avatar for tmonaghan

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 …

Member Avatar for tmonaghan
0
95
Member Avatar for arjayes

I need a shell script to simultaneously run multiple instances of a compiled c code can some one please help i'm using BASH

Member Avatar for arjayes
0
77
Member Avatar for iggy78

#!/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 …

Member Avatar for iggy78
0
81
Member Avatar for psmawson

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 …

Member Avatar for t_rectenwald
0
98
Member Avatar for lishannx

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. …

Member Avatar for lishannx
0
93
Member Avatar for samba_siva_raju

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 …

Member Avatar for eggi
0
91
Member Avatar for tones1986

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=",") …

0
105
Member Avatar for ashikin_8119

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" …

Member Avatar for eggi
0
68
Member Avatar for skelly16

Hi Guys I have created a script and everything works but i want my script to sort by the highest count etc. The script counts the amount of times a job fails , for example the output looks like this: u08.joebloggs.ndm has failed 1 times u09joeblogs.rpt has failed 5 times …

Member Avatar for skelly16
0
188
Member Avatar for tanalam

Hi all, I am writing a script which parses /* to find out the commented portion of the code. I am using grep "/\*" file.c Following is the code snippet for i in `grep "/\*" file.c`; do . . . done but this is not giving the lines greped from …

Member Avatar for masijade
0
126
Member Avatar for RohitSahni

Hi All, My query is related to assinging a variable with value which is there in the env. Suppose from my c++ code i am doing putenv("A=abc"), now wat i want to do is to get this value of A in my shell script and assisng this "abc" to my …

Member Avatar for eggi
0
100
Member Avatar for chunchuwar

Dear all, cut -c 4-8 , this will cut the character from 4 to 8 and give the output but suppose I want output excluding character 4-8 then how can I do with cut command Thanks in adavance Vinod

Member Avatar for radoulov
0
68
Member Avatar for jason.bean

Hello I am new to Unix. Please help me out. My Scenario: I am first collecting all the file names present in the directory with structure myinfo/yourinfo/supplierinfo I have four files with the names myCollector.java, yourCollector.java, someCollector.java, everyCollector.java. in the directory. I am reading the file name and i am …

Member Avatar for radoulov
0
175
Member Avatar for bilalb1

hi hope u guys are well... i am using a linux command (with system() call in my c++ code) to search all files with in the system and then store the results in the a file(say filename). i am piping this with tail --f filename to display the results while …

Member Avatar for bilalb1
0
232
Member Avatar for bcromwell

Hello All, I could use some help, I am trying to write a small script for my mythTV dvr but I am in over my head (I am new to bash scripting), I am trying to run "ls -tr *.avi | tail -10" to get a list of the last …

Member Avatar for bcromwell
0
72
Member Avatar for sanjay goyan

Dear friends , file is test.sh [CODE] echo expr 2+4; [/CODE] its give result 2+4 not 6 so plz tell how can i get the right result sanjay

Member Avatar for masijade
0
106
Member Avatar for ashikin_8119

Hi all,i am very new to shell and awk scripting,..hope u guys can help... I need help in sorting and grouping the data in one flat file.The file look like this: 040171011140820070000000009650244002933170003000000075272 1F921338300506 01082007000014000000027665 1H912279980109 01082007000012000000042420 1S503377200110 01082007000014000000005187 1S503377200110 01082007000688000000005188 3SF98 I need to rearrange the file to become like …

Member Avatar for ashikin_8119
0
102
Member Avatar for zippie

Hey I am a software developer programming in c++ java and shell scripting. I hope I can help some people with there problems, that is programming problems hehe and off course learn off other people.

Member Avatar for jasimp
0
24
Member Avatar for everlast

i've obtained alot of literature for vim editor and i've started working, but then i realised there aren't any books on shell scripting (at least i could'nt find any) containing many examples. can anyone suggest a good by example book on bash shell? also, what is the importance of scripts …

Member Avatar for everlast
0
79
Member Avatar for noamb

Hello all, I need to write a script that will act upon output formatted like the following example: [B]afp:state = "RUNNING" afp:usersArray:_array_index:0:disconnectID = 0 afp:usersArray:_array_index:0:sessionID = 3423 afp:usersArray:_array_index:0:minsToDisconnect = 0 afp:usersArray:_array_index:0:flags = 0 afp:usersArray:_array_index:0:state = 6 afp:usersArray:_array_index:0:loginElapsedTime = 89731 afp:usersArray:_array_index:0:name = "maryallen" afp:usersArray:_array_index:0:lastUseElapsedTime = 89725 afp:usersArray:_array_index:0:serviceType = "afp" afp:usersArray:_array_index:0:sessionType = …

Member Avatar for stilllearning
0
84
Member Avatar for stilllearning

Hello, I need to figure out the sizes of different data types in a bash script. I haven't been able to make it work with sizeof(), is there an alternative ? Thanks a lot.

0
76
Member Avatar for siri_lito

hi, can anyone give me idea how to do this please as i am new to shell scripting write a shell script(varcount) that takes a c++ program and counts the number of words which could be a valid c++ variablename. thanks for the help in advance

Member Avatar for swetha321
0
70
Member Avatar for number1029

Ok, my name is Paul and i am new to this forum. I need some help and thought i can try my luck here. I need to write a program to do the following: 1. Need to write a shell script called fileutils.sh that will do: Accept one variable on …

Member Avatar for eggi
0
117
Member Avatar for n2201

I want to get out put as folows: [code] 100 HE01 {number of line in this file} {file created on time stamp} 200 LTXS {number of line in this file} {file created on time stamp} (if the file does not exist then it should say FILE NOT AVAILABLE [/code] to …

Member Avatar for eggi
0
109
Member Avatar for Gorilatsouk1

Hello guys, I have tried unsuccessfully the following problem with sed and awk grep commands: [B]- Try to find a specific word in a text file, and when you find it, [B]add [/B]after that word the number of occurrence of that word, but leave the first match unchanged, i.e. no …

Member Avatar for Gorilatsouk1
0
131

The End.