Sponsored Content
Top Forums UNIX for Advanced & Expert Users Redirection? (I do find some of the strangest things.) Post 302989216 by jlliagre on Tuesday 10th of January 2017 04:56:31 AM
Old 01-10-2017
Shellsheck SC2188 message is not reporting an invalid syntax but is merely a warning telling there is a potential bug. Adding a no-op command makes the intention clear but it is not required.

The line:
Code:
> /dev/null 2>&1 cat /tmp/noise.raw > /dev/dsp

discards the potential error messages and it has a command (cat) so Shellcheck doesn't report an error with it.
This User Gave Thanks to jlliagre For This Post:
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

i get the strangest feeling that lilo hates me.

i need to get rid of lilo's splash screen. i've heard that you can edit your /etc/lilo.conf and add this line: <b>append="splash=0"</b> anyway, i did that and i still have a splash screen. any idea why that didn't work, or what is another way to disable the splash screen? okay, -nydel (1 Reply)
Discussion started by: nydel
1 Replies

2. Programming

Complicating things?

So basically what im trying to do is ... Open file, read that file, than try to find .. We or we and replace them with I, but not replace the cases where words contain We or we, such as Went, went, etc a and replace them with the, but not replace the cases where words contain a, such as... (1 Reply)
Discussion started by: bconnor
1 Replies

3. Programming

Question about several things in C

Hey guys, first of all I'd like to say Hi to everyone. I am new here and this is my first post. I have a question about some C stuff. I am in Computer Science and I have an assignment for a UNIX Applications course. It is really complicated, however. We're using the C language for this and... (1 Reply)
Discussion started by: V4D3R
1 Replies

4. UNIX for Advanced & Expert Users

shell redirection in find

hi, i need to clear data off a DOA backup drive. i try this, but just get a file {} in . and no change on the backup drive. bash shell find /mnt/usbbackup -xdev -type f -exec echo `date` > {} \; any ideas? thanks. :) (1 Reply)
Discussion started by: drewnichols
1 Replies

5. UNIX for Dummies Questions & Answers

Just trying to find out a few things ....

Hi everyone Just a couple of quick questions if I may. Can I ask what is meant by "flavours"?? I've come across it many times in the forums and I'm guessing that it is a variery of either Linux or UNIX (I know nil about either) which has developed but not really got a clue. ... (1 Reply)
Discussion started by: Tiramisu
1 Replies

6. Shell Programming and Scripting

Several exec on find send all the output to the last redirection

Example script: find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Discussion started by: Tribe
2 Replies
dspcat(1)						      General Commands Manual							 dspcat(1)

NAME
dspcat - display all or part of a message catalog SYNOPSIS
catalog_name [set_number [message_number]] DESCRIPTION
The command displays a particular message, all of the messages in a set, or all of the messages in a catalog. If you include all three command operands, displays a particular message. If you do not include message_number, all the messages in the specified set are displayed. If you specify only catalog_name, all the messages in the catalog are displayed. If you specify either an invalid message_number or invalid set_number, an error message is displayed. You must include set_number if you include message_number. Options The command recognizes the following option: Formats the output so that it can be used as input to the command. You cannot use the message_number operand with the option. Operands The command recognizes the following operands: catalog_name Specifies a file containing a message catalog. If the file is not in the set of directories specified by the envi- ronment variable, searches for it in the current directory. (For more information about see environ(5).) set_number Specifies a set in the catalog. message_number Specifies a particular number in the specified set. EXTERNAL INFLUENCES
Environment Variables provides a default value for the internationalization variables that are unset or null. If is unset or null, it defaults to (see lang(5)). when set to a non-empty string value, overrides the values of all other internationalization variables. determines the language in which messages are displayed. determines the path to be used for searching the specified message catalog file. It affects how the internationalization variables are used in locating the desired message catalog. EXAMPLES
To display message number 2 in set number 1 of test.cat, enter: AUTHOR
The command was developed by OSF and HP. SEE ALSO
dspmsg(1), gencat(1), mkcatdefs(1), catclose(3C), catgets(3C), catopen(3C). dspcat(1)
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy