Sponsored Content
The Lounge What is on Your Mind? YouTube: How to Use Code Tags and Format Posts @UNIX.com Post 303038997 by Neo on Thursday 19th of September 2019 07:37:43 AM
Old 09-19-2019
YouTube: How to Use Code Tags and Format Posts @UNIX.com

By special request, and long overdue, I have updated our "code tags" video and so now we have:

How to Use Code Tags and Format Posts @UNIX.com in 4K

Code:
https://youtu.be/4BuPvWJV__k

Quote:
In this casual video, we review how to use CODE, ICODE and QUOTE tags in 4K video for formatting posts at the UNIX and Linux Forums (unix.com).

Experience shows that when people have technical questions and they format their unix and linux technical questions well using the proper formatting tags, they always get better responses to their tech and coding questions.

Machines cannot format nearly as well as humans do, so please format your posts, especially when you post file content, input, output, commands, scripts, error messages and so forth.

Thanks!
These 8 Users Gave Thanks to Neo For This Post:
 

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

How to use YouTube tags

We have tags to allow embedding a YouTube video in a thread. Here is how they work.... First I need to find the url of a YouTube video that I want to use. Here is one: http://www.youtube.com/watch?v=Do5vj3D-OD4 That "Do5vj3D-OD4" is the key. So I can do this: Rakim by Dead Can Dance... (0 Replies)
Discussion started by: Perderabo
0 Replies

2. Web Development

php youtube style embed code

I'm looking to have a embed code for people be as short as possible. I'm trying to figure out how to do this. So something like... <EMBED SRC="http://www.website.com/myembedscript.php?id=1" HEIGHT=60 WIDTH=144> I'm looking to figure out what "myembedscript.php" should do. I have it... (0 Replies)
Discussion started by: mainegate
0 Replies

3. War Stories

Scrollbars and Overflow in Posts (Code Tags)

YAY! Finally, seems like forever, I added this CSS to the posts (postbit) for table columns and scrollbars work still do not work for code tags and text inside posts. <style> td { max-width:200px; overflow: auto; white-space: nowrap; } </style> YAY... Now scollbars... (3 Replies)
Discussion started by: Neo
3 Replies

4. What is on Your Mind?

YouTube: Forum Moderation @UNIX.com | The UNIX and Linux Forums

Forum Moderation @UNIX.com | The UNIX and Linux Forums https://youtu.be/WGwgibE4Rq0 Also note: In the video I mentioned removing legacy menu items in the ModCP which are unused. I have already "CSS'ed out" the unused menu items: ... (0 Replies)
Discussion started by: Neo
0 Replies
SHELL-QUOTE(1)						User Contributed Perl Documentation					    SHELL-QUOTE(1)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.16.3 2010-06-11 SHELL-QUOTE(1)
All times are GMT -4. The time now is 07:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy