1,817 Topics

Member Avatar for
Member Avatar for kneiel
Member Avatar for cfajohnson
-1
87
Member Avatar for kneiel

My input file looks like this [code] abc def \ ghi jkl && mno || hju [/code] My objective: to replace '' with line 2 newLine=`sed -n "2 p" inputFile` sed -n 's/\\/'"$newLine"'/p' inputFile | tee inputFile When i do this, the output i get is -> abc def abc …

Member Avatar for kranny
-1
88
Member Avatar for axeeffect2002

Hi, I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level". The shell script i've written is as follows:- [CODE]cat input.log | awk '/\[WorkOrderNumber/' | awk /120600012/ | awk /INFO/ | tee log.vw[/CODE] For a particular WorkOrderNumber, the record is very long (4253 …

Member Avatar for axeeffect2002
-1
405
Member Avatar for kranny

I want to write a script where in i can kill the top processes and run this script for every 5 minutes.How to extract parameters from top command

Member Avatar for kranny
-1
168
Member Avatar for serkan sendur

when i run cat . i displays some weird characters which is fine, but after that i can not turn back to my normal directory path. it always shows some weird characters in my directory path too. Why? how to turn back?

Member Avatar for serkan sendur
-1
174
Member Avatar for chris5126

Hi Guys, I have a file with lots of similar records example shown at end, I want to be able to delete one of the records and have the following line of code which finds the record I need to delete, my question is now I have found the record …

Member Avatar for chris5126
-1
124
Member Avatar for OneDreamCloser

hi all, given a path, for example : /<pwd>/artist/album/ what i would like to do is to rename the album directory like that : /<pwd>/artist/artist | album/ and i would like to do the latter for all the "artist" directories and for all the "album" directories that belong to an …

Member Avatar for sknake
-1
54
Member Avatar for haykins

ok. There is a window xp base production server contained video files for play out. There is another server which is a linux base server placed in the network of the window xp based production server. I normally copy the files in the windo xp production server to the linux …

Member Avatar for sknake
-1
82
Member Avatar for danielraj

Dear All, i have the linux machine. i am a admin(root) of the system. i have create a user yesterday. now i login user i saw this error.. pls help me... -bash: /home/user/.bash_profile: Permission denied

Member Avatar for sknake
-1
100
Member Avatar for VIkhers

dear all,, I just try to make script to autosave an opened excel that auto refresh every 3 hours. Every 3 hours the data will be added to excel,, cause the excel will take data from database (that the cause I need to autorefresh). but I need to autosave it …

Member Avatar for Salem
-1
67
Member Avatar for pkgr8

hello, i am writing my own shell and struck at implementing "help"....can any one help me .....plz just dont refer the man pages of linux plz elaborate also.... also plz some one tell me how to implement the background processing .....reply asaap its urgent thanks in advance

Member Avatar for Salem
-1
79
Member Avatar for lipun4u
Member Avatar for kungle
-1
92
Member Avatar for fayola

I have a helper script that will grab weblogs for a particular domain, if called by itself from the MS-DOS command line it works as intended, but I'd like to call another script to call this script multiple times for the multiple domains, but it's only running the first call …

Member Avatar for fayola
-1
128
Member Avatar for pkgr8

HELLO I Am writin my own shell in linux, and making use of execvp() for handling internal commands but it does not supports cd...plz help also if anyone can suggest some another way to handle internal calls except using system() thanks in advance :-)

Member Avatar for Salem
-1
41
Member Avatar for stoymigo

Hi, i hope I'm posting about right topic. I need to be able to move file(s) from a directory to another directory which the user does not have access to(i.e. they can't view/access the folder). Can this be done with scripts? The environment is a windows server 2003 network. -Thanks

Member Avatar for John A
-1
144
Member Avatar for ShawnCplus

I ran across the need to view a specific line of a file so I wrote this up. You can view a line or a range of lines for a file or compare two files. Check the command for the syntax. Drop it in /usr/bin/sln and enjoy.

Member Avatar for ShawnCplus
0
226
Member Avatar for ankur.dhoot

This code changes color of prompt according to user, suppose if user is root then color would be red and normal user would have color black. This'll diffrentiate in users.

0
146
Member Avatar for Stylish

Here is a little spinner thing for the command line, used when your current bash script is waiting on a background/system process. The weird character is ^H or a backspace.

Member Avatar for cfajohnson
0
250
Member Avatar for Paul.Esson

I know what your thinking, You and everyone else has always wanted a clock that sits at the top of your command prompt and tells you the time. Why ? I made this in first year when i spent countless hours programming and little in bed. I decided i needed …

Member Avatar for Mpiangu
0
158
Member Avatar for deboogeek

Hello, I have used bash scripting for sometime in the past and know quite a bit of linux. But haven't used it in a long time. I am off job and took some data entry job where I need to do some stats work on a very long list of …

Member Avatar for deboogeek
-1
178
Member Avatar for Ctpwwner

I am attempting to familiarize myself with BASH so i can work in a Unix environment. I want to export a shell variable to a simple C program but seem to be unable to do so. Here is the C program: (i am also very unfamiliar with C but this …

Member Avatar for Ctpwwner
-1
98
Member Avatar for baula

Helo frndz, I'm novice in shell scripting...I need ur frnd help to write a shell script for taking backups. This script should use cp command to take backups. Script can read the list of directories and destination directory from a file or ask user for this info interactively... Example: Only …

Member Avatar for baula
0
205
Member Avatar for skelly16

Hi Im writing a script where im using the date command in this format. [Datestart=`date '+%m/%d/%Y':'%H:%M:%S'`] Is their a way to force the date variable above to go back 5minutes?? I know their is a way in perl but i prefer writing this script in ksh

Member Avatar for Salem
0
120
Member Avatar for riahc3

Hey Ive been asked (and I may add this to my system as well) to make a shell script that backups to all files in x location to another location in z. The thing is that the backup must only be made if one file has been changed. Example: /x …

Member Avatar for sknake
0
198
Member Avatar for waldchr

Is it possible to change the desktop background, hide the desktop icons, and hide the menu bar (in windows) using a batch script? If not, could someone direct me as to how to do it in C/C++? Thanks

Member Avatar for waldchr
0
94
Member Avatar for shraddha_gupta

I want to run multiple test cases, for a java program. How can i write script that causes the same program to run for different test cases. Test cases need to be included in same file or different files? how to write the script?

Member Avatar for Salem
0
56
Member Avatar for chris5126

HI Guys, Prob a very simple one but im stumped, I run the following command and get: [code] date Wednesday, 19 August 2009 09:20:59 BST [/code] But when I run [code] date -u '+%y%m%d.%H:%M:%S' 090819.08:21:27 [/code] My question is why is the second command an hour behind? In my environment …

Member Avatar for iceman29
0
193
Member Avatar for skelly16

Hi All Facing issue with using sed and globally replacing a word with date variable for a sql file. Any help would be appreciated. [code]sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW sed -e "s/DATEST\/08/25/2009:07:41:41/g" /uat/ut21_sysmon/quest/foglight/JJ/jjsql Suffix too large - 512 max: s/DATEST\/08/25/2009:07:41:41/g[/code] Thanks

Member Avatar for skelly16
0
355
Member Avatar for darangho

Hi all I just have questions about how not to show messages after you execute a certain command. for example whenever you execute "which xxx" there will always be a message on the terminal saying its path or command not found will be written. is that possible to write a …

Member Avatar for sknake
0
144
Member Avatar for rinque

As mentioned in the title. I wrote a script that has pretty long execution time. Some user just close the window half way and in the end cause some file corrupted. Is there any way to prevent the user closing the window? (Like turn the 'x' button of the window …

Member Avatar for rashshell
0
126

The End.