1,891 Topics

Member Avatar for
Member Avatar for tomtetlaw
Member Avatar for rgy

hi, can someone help me? i need a hand to get a script for a smal change. iget this kind of structure... 20080926RIM881T.20081127.104856 20080926RIM881T.20081127.104831.done 20080926RIM881T.20081202.084408.done 20080926RIM881T.20081127.104845 20080926RIM881T.20081127.104834 20080926RIM881T.20081216.084909.done 20080926RIM950T.20080929.101124.done 20080926RIM951T.20080929.101124.done 20080926RIM952T.20080929.101125.done i woud like to have a script to find all files with .done then i shoug change all files …

Member Avatar for cfajohnson
0
156
Member Avatar for gauravmishra

I want to retrieve the username and password of the current user from a shell script .... how to do this?

Member Avatar for Salem
0
180
Member Avatar for tondeuse34

Hey guys, i'm having some trouble using wget. What i'm trying do is log into a site, once its logged is to go to a certain link. And once it is there download all the files on the page, but check back later to see if any new ones are …

Member Avatar for eggi
0
105
Member Avatar for lehe

Hi, I am now trying to install a C library zlib to be /usr/local/include/zlib, /usr/local/lib/zlib and /usr/local/share/man. Here is the relevent part in the configure file of the library: [QUOTE] prefix=${prefix-/usr/local} exec_prefix=${exec_prefix-'${prefix}'} libdir=${libdir-'${exec_prefix}/lib'} includedir=${includedir-'${prefix}/include'} mandir=${mandir-'${prefix}/share/man'} [/QUOTE] First, what does "-" mean in "prefix=${prefix-/usr/local}"? Second, how can I achieve what I …

Member Avatar for Comatose
0
82
Member Avatar for amanuensis

I have a folder on my server named [B]'EVENTS'[/B] and it contains an additional 50 folders [B]'EVENT1', 'EVENT2', 'EVENTS3'[/B] etc, etc. Each of these 50 folders contains within them a varying amount of files and folders also. (So that is the set up). I am wondering if it is within …

Member Avatar for eggi
0
134
Member Avatar for Blackeagle
Member Avatar for verruckt24
0
109
Member Avatar for orwell84

I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this file, except in /usr/share/doc/adduser/examples/adduser.local.config.examples/skel and it's called "dot.bash_profile". Plus, the whole thing is just comments. The …

Member Avatar for Aia
0
204
Member Avatar for Blackeagle

Hello, i'm trying to print specific lines from a file using only [U]one command[/U] for example: a file contains 30 lines , i wish to print the content of lines 13, 14, 15, 16?? what command to use for that?

Member Avatar for Salem
0
96
Member Avatar for ntman4real

Hey Guys, I am a newb when it comes to bash scripting,but I am loving the learning so far. I am at a wall though. I have scoured for hours tryng to find an answer. Basically here is the pseudo code: 1. ask for users grade 3 times in using …

Member Avatar for eggi
0
124
Member Avatar for lehe

Hi, I read something like "\mkdir ${RESULT_DIR}". Just curious about why "\" is added before the command? Thanks for help!

Member Avatar for Fest3er
0
136
Member Avatar for number87

ok what i need to do is to make a script function which allows me to change the records in a file. I read some other posts about using sed but i still could not get it to work. The function runs But nothing changes in my file. This is …

Member Avatar for eggi
0
99
Member Avatar for number87

I am doing a shell script to be able to read some records from a file, then ask the user to input a name. The script should then be able to search the records and only print out the requested record. I have figured out how to print the records …

Member Avatar for Salem
0
112
Member Avatar for AkhileshBabu

Any one please tell me about the algorithm used for updating the Cpnel used in webservers

0
47
Member Avatar for serkan sendur

1) vi . profile shows alias for commands, you can set the new ones. 2) esc = displays the file and folders in a numbered fashion. 3) esc – or esc k ( esc n does the same thing reversely) shows the previous commands 4) cd esc \ [type something] …

0
54
Member Avatar for AlvinRey70

Can someone please help me with the following questions. 1) Create a script that will produce a text file that has a list of the files in the present working directory. Ensure you use the proper syntax to allow auto-execution from the command prompt. Use internal documentation (comments) to place …

Member Avatar for moqwen
-1
211
Member Avatar for shyamsantra

Hi All, I am trying to compare two folder using "cmp" command. Folder1=/path/to/folder1 Folder2=/path/to/folder2 Folder1 has file name abc.txt efg.txt hij.txt . . . ..................... xyz.txt Folder2 has file name abc.txt efg.txt . . . ..................... xyz.txt I want to compare this two folder with similar name. Means Folder1/abc.txt should …

Member Avatar for eggi
0
81
Member Avatar for jinsonsani

I want to replace a text in a file eg (old_text) with another text eg (new_text) . new_text is a variable in my shell script. few methods that i tried .. but this doesnt work cat $line".sh" sed -e 's/abc/ABC/g' $line".sh" sed 's/ordprg/new_string/g' $line".sh" > $line".sh" Could some one can …

Member Avatar for eggi
0
166
Member Avatar for mustaine85

Hi, how do you append to a variable? I can only get it to work with a seperate file like this: printf $number1 >> sum.txt I tried this : $number1 >> $sum but it says $sum: ambiguous redirect, any ideas? :)

Member Avatar for eggi
0
88
Member Avatar for mustaine85

Can I use my own variables within awk and sed for example: I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a data file. I want to use : sed …

Member Avatar for mustaine85
0
88
Member Avatar for shouvik.d

Hi There, I have a third party EXE file (on which I have no control of any modification) which invokes a new CMD window in order to execute itself. In other words it a windows console application. Now it executes with some switches for runtime options [ICODE]<exe_name> /opt1 "param" /op2[/ICODE] …

Member Avatar for Fest3er
0
570
Member Avatar for Blackeagle

hello, i'm new with scripts and linux and need a little help. i made a text file called colors using a vi editor and contains as follows: red green blue gold now i want to delete the 2nd line with the word green using a script file. well i know …

Member Avatar for Salem
0
120
Member Avatar for mustaine85

Hi I have a simple question. Is there an easy way read a date of birth from a file and calculate how old that person is based on today's date? And would I need the make sure the birthdates are enterered in a particular format?

Member Avatar for eggi
0
78
Member Avatar for wmuldoon

hello all, I work at a newspaper, and we use QuarkXPress for Desktop publishing...and we have a pretty unfortunate glitch, when Quark crashes, it seems to untick the backup option in the pref's... so I was thinking this would be a good place for a small recursive script, that would …

Member Avatar for wmuldoon
0
250
Member Avatar for serkan sendur

hi all, i want to associate some files with some programs like we do in windows platform. for example on the shell prompt if i type a file name(i am in that directory) i want it to be opened by gvim editor. how can i do that?

Member Avatar for eggi
0
278
Member Avatar for rhesus303

I'm learning some shell scripting but came across this line: [icode] link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` [/icode] Where [icode]ls=$0[/icode] Can someone explain it to me pls?

Member Avatar for eggi
0
228
Member Avatar for jagr200

hey all. Im writing a small script that is supposed to check for a file or directory and when its not there create it. After it creates the file or directory I would like the script to loop to the beginning but I cant figure it out. What am I …

Member Avatar for Fest3er
0
93
Member Avatar for confusedGirl

[COLOR="red"][COLOR="red"]Hi all[/COLOR][/COLOR] [COLOR="Red"]I write to ask you if you could help me with writting this script>>[/COLOR] Suppose we have 2 files: x and y In x, we have those lines: g0201350 g0233234 football United Arab Emirates University College of Information Technology g0209099 In y, we have those lines: Hello there! …

Member Avatar for eggi
0
116
Member Avatar for samantha grace

hi, i am a newbie and have to write a rather complicated script. Assume that i have a variable called x and a C source code file say file1.c (this are the inputs of the script) and i need to find the names of all the functions in the C …

Member Avatar for samantha grace
0
228
Member Avatar for shouvik.d

Hi, I am using a scheduled task that runs every night to take backup of important files. This task creates a folder in the following format Backup_DD_MM_YY where DD_MM_YY denotes the date when the backup was taken. Now everytime this scheduler runs I need to remove the older directory and …

Member Avatar for eggi
0
338

The End.