Sponsored Content
Full Discussion: short notice
Top Forums UNIX for Dummies Questions & Answers short notice Post 302069284 by gummiworm on Friday 24th of March 2006 01:15:13 AM
Old 03-24-2006
short notice

Im getting stumped on one of my unix problems. Im a college student taking unix and for one of my assignments I am to write a few programs. I done the programs but on one of them I have to modify it by using sed instead of a while do loop. here's the while loop

while [ "$#" -gt 1 ]
do
filelist="$filelist $1"
shift
done

And now I have use the sed command instead of the while but it has to do the same job. Im seriously loss you guys and gals Smilie . HELP PLZ, plz you guys dnt make me beg, PLZ! Any help will do, Im lookn for a good, extremely good push in the right direction. THANX
 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Anybody Notice a Speed Increase?

Hi. I moved this site to a T3 facility and wanted to know if any of the long time users noticed a performance improvement? Thanks, Neo. (5 Replies)
Discussion started by: Neo
5 Replies

2. UNIX for Advanced & Expert Users

NOTICE:Cha

Pls can u help me diagnosed this Notice l receive during booting of my openserver 5.0.4 unix from the kernel. NOTICE:cha:SCSI bus has been reset ha=0 Attached SCSI peripherals will retunr to power up state (ChaN04) NOTICE:cha:SCSI command timed out ha=0... (2 Replies)
Discussion started by: kayode
2 Replies

3. UNIX for Advanced & Expert Users

NOTICE: HTFS: No space on dev hd (1/42)

If somebody solve this error please help me! Thanks in advance! :confused: (7 Replies)
Discussion started by: FCollet
7 Replies

4. Solaris

NOTICE: e1000g1/0 registered in messages

Please can anyone tell me what these messages I found in /var/adm/messages for six T2000 servers this morning? The systems are all operating okay, but I am wondering what it means (extract follows) Aug 27 00:07:11 t2000-06 mac: NOTICE: e1000g1/0 registered Aug 27 00:07:11 t2000-06 e1000g: ... (5 Replies)
Discussion started by: floydm
5 Replies

5. Solaris

interface down notice is coming

While taking explorer, below messages are coming. nxge: NOTICE: nxge0: xcvr addr:0x0d - link is down nxge: NOTICE: nxge1: xcvr addr:0x0c - link is down nxge: NOTICE: nxge2: xcvr addr:0x0b - link is down nxge: NOTICE: nxge3: xcvr addr:0x0a - link is down Why these messages are... (0 Replies)
Discussion started by: sunnybee
0 Replies

6. UNIX for Dummies Questions & Answers

How to get failure notice message when email is not sent.

I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly. Can anyone please... (0 Replies)
Discussion started by: szc0025
0 Replies

7. UNIX for Advanced & Expert Users

Email failure notice not displayed.

I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly. Can anyone please... (5 Replies)
Discussion started by: szc0025
5 Replies
SHTOOL-SUBST.TMP(1)					      GNU Portable Shell Tool					       SHTOOL-SUBST.TMP(1)

NAME
shtool-subst - GNU shtool sed(1) substitution operations SYNOPSIS
shtool subst [-v|--verbose] [-t|--trace] [-n|--nop] [-w|--warning] [-q|--quiet] [-s|--stealth] [-i|--interactive] [-b|--backup ext] [-e|--exec cmd] [-f|--file cmd-file] [file] [file ...] DESCRIPTION
This command applies one or more sed(1) substitution operations to stdin or any number of files. OPTIONS
The following command line options are available. -v, --verbose Display some processing information. -t, --trace Enable the output of the essential shell commands which are executed. -n, --nop No operation mode. Actual execution of the essential shell commands which would be executed is suppressed. -w, --warning Show warning on substitution operation resulting in no content change on every file. The default is to show a warning on substitution operations resulted in no content change on all files. -q, --quiet Suppress warning on substitution operation resulting in no content change. -s, --stealth Stealth operation. Preserve timestamp on file. -i, --interactive Enter interactive mode where the user has to approve each operation. -b, --backup ext Preserve backup of original file using file name extension ext. Default is to overwrite the original file. -e, --exec cmd Specify sed(1) command directly. -f, --file cmd-file Read sed(1) command from file. EXAMPLE
# shell script shtool subst -i -e 's;(c) ([0-9]*)-2000;(c) 1-2001;' *.[ch] # RPM spec-file %install shtool subst -v -n -e 's;^(prefix=).*;1 $RPM_BUILD_ROOT%{_prefix};g' -e 's;^(sysconfdir=).*;1 $RPM_BUILD_ROOT%{_prefix}/etc;g' `find . -name Makefile -print` make install HISTORY
The GNU shtool subst command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 2001 for GNU shtool. It was prompted by the need to have a uniform and convenient patching frontend to sed(1) operations in the OpenPKG package specifications. SEE ALSO
shtool(1), sed(1). 18-Jul-2008 shtool 2.0.8 SHTOOL-SUBST.TMP(1)
All times are GMT -4. The time now is 01:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy