1,978 Topics

Member Avatar for
Member Avatar for keeda

Hi, I have written a script that sends daily emails. I want a certain part of the mail text to be in bold. Please advice me on how to achieve this? Thanks.

Member Avatar for keeda
0
2K
Member Avatar for niall_heavey

Hi all, I literally only started looking at shell a couple of hours ago. I am looking to do just one task, which I think should be quite straight forward. I will try explain it as best I can......... Basically I am trying to automate the grep command from ubuntu …

Member Avatar for niall_heavey
0
119
Member Avatar for arsenal_fan

Hi, I was recently asked in an interview the number of processes that are created when I enter in a command that contains a pipe. For eg. If I enter the command: $who | tee /dev/tty | wc -l Could anyone tell me how many(which) processes are created and in …

Member Avatar for griswolf
0
119
Member Avatar for thehivetyrant

Hi there, I'm making a simple shell program in [B]pico using Unix[/B]. I was given most the code from a tutor and added bits to it, it's supposed to go to a prompt allowing user to type but instead it does nothing. [B]No errors are shown.[/B] Btw: i use [B]gcc …

Member Avatar for thehivetyrant
0
134
Member Avatar for andrewschools

Hello there - I have three directories. I would like to compare directory1 with directory2, then take those changes/new files and copy them over to directory3. I was given the following code: [code] #!/bin/bash dir2="d1" dir1="d2" dir3="d3" for file in dir2/*; do file_in_dir1=dir1/$(basename ${file}) if [ ! -e ${file_in_dir1} ]; …

Member Avatar for rch1231
0
383
Member Avatar for masifahmed

Hi Experts, I'm newbie in Shell Srcipt Programming. I want to copy some binary files to remote server through ftp script. I got a script which is working fine like coping files to remote server. But I want to put some conditions in script like if the file already exists …

Member Avatar for griswolf
0
127
Member Avatar for spowel4

If I have the following line in a bash script, it works fine: [CODE]CoDescDate=$(awk -F"\t" '{print $22}' $1)[/CODE] If I embed the above line in a function that is within the same bash script, the script seems to hang at the point of invoking the function. [CODE]pay_ending_date () { CoDescDate=$(awk …

Member Avatar for spowel4
0
150
Member Avatar for spowel4
Member Avatar for Viruthagiri

Hello friends, I have text file which contains more than million phone numbers. Here is the example. I want to extract all numbers and put it in a excel single row file. [QUOTE]07748362656 07532517142 07946132831 07532135934 07880531707 07816820456 07879181057 07928483273 07735721101 07668889152 07925787076 07041438421 07524774407 07948383594 07927231600 07796044906 01679953124 01615331860 …

Member Avatar for cfajohnson
0
146
Member Avatar for sdert

We try to search and remove duplicate files and need the best program for this purpose.

Member Avatar for rodriguez19
0
82
Member Avatar for titotoms

Hi, What is a log file?What is its purpose?How do I open, read and write to log files? Thanks, Toms

Member Avatar for Lalchand Saini
0
124
Member Avatar for habib_parisa

I am using Ubuntu-gcc and have a large C code which uses routines from numerical recipes and GNU scientific library. It needs a compilation compilation because each library, i.e. nr and GNUsl, needs its own flags for gcc. Therefore I use a makefile. It works well when the code is …

Member Avatar for griswolf
0
370
Member Avatar for theuman

Hey Everyone, Shell programming is something I haven't learnt or tried before.. but I kind of need it to automate backing up my website. At the moment, I have: [CODE]#/bin/bash /bin/tar czPf /home/cpanelusername/etc/files/wp-content-weekly.tar.gz /home/cpanelusername/public_html/wp-content/[/CODE] but how do I get it to email me the file wp-content-weekly.tar.gz and then delete it? …

Member Avatar for serged
0
103
Member Avatar for sonja19

hi, Im just a novice in shell scripting,can you help me out; all inbound files will now have timestamp. the timestamp will be get from a server,specifically on a Moveit server. any help will do.. thanks.

Member Avatar for griswolf
0
180
Member Avatar for kirill1996

HELP ME, I accidently ended explorer.exe (my shell) in Task Manager. I went to New Task>explorer.exe>run and it only opened windows explorer but did not open my shell.

Member Avatar for purvansh
0
251
Member Avatar for cableguy31

I am trying to write a script that can accept multiple options. The issue that I'm having is some of the potential input will be search criteria. The syntax would be: script [list of patterns] [-t seconds] [-n count] All of the arguments are optional. So far, my thoughts were …

Member Avatar for edup_pt
0
235
Member Avatar for kandarpa

Hi I am tryibg to check for presance of a string in a big string. I tried as follows: [CODE]IS_VECTOR_TEST_CASE=`grep AIV "$PWD"` if [ "$IS_VECTOR_TEST_CASES" = "" ] then #do something else #do something fi[/CODE] This always giving me as if [ "$IS_VECTOR_TEST_CASES" = "" ] is true with following …

Member Avatar for kandarpa
0
109
Member Avatar for Pawan Tolia

Can some body help in writing the shell script to copy the nightly file from windows server to unix server. Thanks in advance

Member Avatar for sonja19
0
113
Member Avatar for Member 784878

How to convert following dos batch code to unix shell:- echo Database username and password will be taken from liquibase.properties file.... setlocal ENABLEEXTENSIONS for /f "tokens=1* delims==" %%a in (liquibase.properties) do ( if "%%a"=="username" set dbuser=%%b if "%%a"=="password" set dbpwd=%%b if "%%a"=="url" set dburl=%%b ) echo. echo UserName is:=%dbuser% echo …

Member Avatar for griswolf
0
147
Member Avatar for faby

Hello everyone, I am presently working on speech synthesis/speech to text on Ubuntu 10.04. So far I've been using festival but I discovered espeak which is also cool by reading other people's previous questions and answers. My main goal is to develop a communication system whereby festival or espeak can …

Member Avatar for fpmurphy
0
632
Member Avatar for crystaliao

hi everyone, Originally I had a script like: telnet host port then type STATUS for checking remote server,local server status and connection. In order to omit typing "STATUS", now I'm trying combine these two commands into one line, how to write it? or do we have another way to achieve …

Member Avatar for griswolf
0
207
Member Avatar for sarosh

hi, suppose i have many windows open like two image files, a terminal , a firefox. and using command line i want to exit specifically 1 of these.. how can i do this? is there any shell command to do this? thanx... i am waiting for reply. its urgent! m …

Member Avatar for sarosh
0
129
Member Avatar for dhanapal86mca

Can any one tell me Difference between Dos printing and windows printing explain with a bat file

Member Avatar for rch1231
0
53
Member Avatar for bojomojo

Hello, I have a file with each line consisting of certain fields. Lets say I want to detect which lines have the second field equal.. For example here is the file: [CODE]XM2 N$2 N$2 GROUND GROUND nch_mac1 l=50n w=150n multi=1 nf=1 sd=140n XM1 N$12 N$2 GROUND GROUND nch_mac2 l=50n w=150n …

0
78
Member Avatar for arithehun

I have a question: Is there any tutorial or way I could create a batch file that scans the folder that it's in, and then prompts you with an option of whether to delete any (C++, for example) files that don't begin with a command line, e.i. doesn't start with …

Member Avatar for arithehun
0
102
Member Avatar for Mahamuni

H!..... Can anybody tell me about retrieving lines from file I am working in linux ... And I have one File with some data in it like Filename: Sumit ...info about file ... FileName: Mahamuni ...info about file ... like above .. i wanna retrive filename & its info Please …

Member Avatar for rch1231
0
68
Member Avatar for keeda

Hi I am a novice in Shell Scripting but wanna learn it as soon as possible as it is such a powerful language. I already have a script created(by a senior fellow) and I can run the .sh file simply by command ./xxxx.sh Now I have created my own script …

Member Avatar for griswolf
0
150
Member Avatar for kubber

Hi I need to create script that will work like this : (initial dir structure ) /dirA .../dirA_1 ...file1.txt ...file2.txt .../dirA_1_a ......file3.txt ......file4.txt ....../dirA_2 .........file5.txt ........./dirA_2_a ............file6.txt ............file7.txt myScript.sh /dirA /destDir and the result is : /destDir .../dirA ....../dirA_1 ......dirA_1.zip ........./dirA_1_a ............dirA_1_a.zip etc .. I hope you get the idea. …

0
62
Member Avatar for rashida11

Here is the list of scripts directories to submit your scripts,software to get more exposure.If you have developed new scripts,software then submit it to these script direcories. [url]http://www.scriptsdesk.com[/url] [url]http://gscripts.net/[/url] [url]http://www.allthescripts.com/[/url] [url]http://www.cgi-index.com/[/url] [url]http://www.cgiexpo.com/[/url] [url]http://www.allthescripts.com[/url] [url]http://www.scriptswave.com/[/url] [url]http://www.infoscripts.com/[/url] [url]http://scriptlisting.net/[/url] [url]http://scriptrank.com[/url] [url]http://www.best-php-scripts.com/[/url] [url]www.freephpdirectory.com/[/url] [url]www.slashscripts.com[/url] [url]www.phpscriptsearch.com[/url] [url]http://www.fileplaza.com[/url] [url]http://www.scriptsez.com/[/url] [url]http://php.resourceindex.com[/url] [url]http://www.hotscripts.com/[/url] [url]http://www.scriptaty.net[/url] [url]http://www.codango.com[/url] [url]http://www.webresourceindex.com[/url]

0
170
Member Avatar for kbrill

I import data into MySQL over and over again. Always from .sql scripts. I have tried over and over to come up with a script that will [LIST=1] [*]Ask for a database name [*]Sign into MySQL [*]Drop the Database named in step 1 [*]Create a new database as named in …

Member Avatar for kbrill
0
2K
Member Avatar for daudiam

[CODE]cmd='date | wc' $cmd [/CODE] If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument". What is meant by expansion of pipe. When we execute [B]date | wc[/B] on …

0
100
Member Avatar for Grep

Hey guys, Hope I'm not posting into the wrong section. I think I have something very simple that i'm having a lot of trouble with. I have a text file called "file.txt" It contains: TagString=V3,SCC-COM,WXF1A20V0556,WXE1A2071007,PREBI TagString=V3,SCC-COM,WXK1A1045668,WXG1A30F3909,POSTBI TagString=V3,SCC-COM,WMAYP0002467,WMAYP0002769,BI I want to run a batch file that'll parse the 1st & 2nd …

Member Avatar for Grep
0
189
Member Avatar for becker

hi all, i work for a department store & we sell various product segments under different departments. one of my challenges is to be able to apply the sales per employee system accurately so that when i measure performance levels based on sales contribution per employee each employee will be …

Member Avatar for griswolf
0
76
Member Avatar for akand

Hi, I want to run some queries in mysql. Also, I want to automate this process. So can someone help me with shell scripting?? I want to open mysql in terminal, type in the password and give some queries.. Can I write a script for d whole thing??

Member Avatar for griswolf
0
63
Member Avatar for War_Archer

in shell scripting let say a variable [CODE]first="abcd:efgh"[/CODE] how do I find the index of : if its even possible thanks

Member Avatar for akand
0
142
Member Avatar for rudasi

Hi, I have a file test.txt, this file has many pathnames such as, C:\xx\yy\zzz\bd\hello C:\xx\yy\zzz\bd\bye C:\xx\yy\zzz\bd\cd\de\name C:\xx\yy\zzz\bug C:\xx\yy\zzz\dfdfd\gt I want to use basename or any other method to get the the last filename. At the moment in my batch script im unable to loop through the file and use basename …

Member Avatar for cfajohnson
0
101
Member Avatar for cshanek

I have a configuration file (listen.conf) with the following format: [CODE] [COLOR="Red"][jupiter] event_class="jupiter_bypass" event_state="active" [hammer] event_class="halt_snmp" event_state="active" [thor] even_class="meh" event_state=inactive[/COLOR] ... [/CODE] What would be the best way to return event_class names of all inactive and/or active events (event_state's)? Thanks in advance, Shane

Member Avatar for cshanek
0
148
Member Avatar for xsach

i need to read a text file and find a particular column in that text file ..i have no idea on how to do it ..can anyone help please..

Member Avatar for cfajohnson
0
184
Member Avatar for Muhammad Anas

Hello Friends, I am an absolutely beginner in the world of computer programming. I started my voyage in this world yesterday by starting learning Python. I am reading an e-book on python [URL="http://openbookproject.net/thinkcs/python/english2e/"]here[/URL]. That book has been written with examples from Linux platform. So, I felt this problem while going …

Member Avatar for snippsat
0
437
Member Avatar for eso

I'm a complete programming novice, so apologies in advance ;) I'm trying to design a simple app to take user input from a textbox (in this case, Outlook EntryID - a hexadecimal string) and use Redemption.DLL to return a set of MAPI properties from the container. The button and general …

Member Avatar for Ramy Mahrous
0
2K
Member Avatar for abhelp

I have a directory listing with many subdirectories having many files. I want to recursively search for the oldest 5 files starting from the base directory and not 5 from each subdirectory. I am writing a shell script which sorts them using ls -lRtur|egrep "txt|jpg" > /tmp/file1 Now from this …

Member Avatar for griswolf
0
641
Member Avatar for bgk111

Hey all, Ill try to keep this short. I am trying to issue a command to another computer using ssh (ex ssh user@host 'csh /home/usr/SCRIPTS/tp.csh) and am getting some annoying error messages. when I run the tp.csh program on the host machine, it runs fine, when I issue the above …

Member Avatar for bgk111
0
241
Member Avatar for tejasthacker

PLEASE HELP ME WITH THIS QUESTIONS, I AM NOT POSTING MY WHOLE HOMEWORK BUT ONLY THE QUESTIONS WHICH I AM NOT SURE ABOUT. 1)What command will set the permissions to 744 on the file /home/fred/.bash_logout Choose one answer. a. chmod a+r,g+r,o+r /home/fred/.bash_logout b. chmod u+rwx g+r o+r /home/fred/.bash_logout c. chmod …

Member Avatar for ryan858
0
118
Member Avatar for csmgsarma

Hi all, I want to add a route on Solaris machine for each IP I am pinging. I am added static route for each IP as here: [B]route add -net 10.116.80.21 -netmask 255.255.255.255 10.116.80.18[/B][interface id 10.116.80.21, gateway = 10.116.80.18] [B]route add -net 10.116.80.23 -netmask 255.255.255.255 10.116.80.18[/B] [B]route add -net 10.116.80.25 …

0
54
Member Avatar for laserlars

Hi! Long time since i done any bash scripting. Is it possible to pass a arguments in functions? Something like: [CODE]recivefunc(SOMETHING) { echo $SOMETHING } passingfunc() { SOMETHING=test recivefunc($SOMETHING) } [/CODE]

Member Avatar for nezachem
0
84
Member Avatar for complete

What is the name of the Windows System Menu button? I am talling about the round glass-orb looking object (on a Windows 7 operating system) that appears in the lower left of the screen -- usually -- that you can click on to see the menu selection of programs on …

Member Avatar for Aia
0
144
Member Avatar for niconico96

Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? If not possible at a certain line, then at …

Member Avatar for niconico96
0
158
Member Avatar for Dr.Acula

Hello. I have a string that im trying to pull text from. But I want it to pull the text between certain points. Is this possible? For Example: DABHolly,BuddyDAL1466 N Scooby AveDAIAtlantaDACGADAQ =========================== ========= Is there a script that can pull the text between DAB & DAL, DAL & DAI, …

Member Avatar for scaiferw
0
154
Member Avatar for niconico96

Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? Thanks a lot in advance ~ Nikhil

Member Avatar for crunchie
0
179
Member Avatar for vs.vaidyanathan

when i do a stderr redirect to stdout, does the shell open the stdout file? if so is there any way i can capture the opening of this file? basically what i want to do is at the firstinstance of an error i want my perl script to die and …

0
86

The End.