Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-17-2013, 12:39 PM   #31
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354

See the last few lines of post #16, above.

Note that this thread is more that a year old. Often posting to an old thread will result in no answers because nobody will look at thread that old. You'll have better luck if you start a new thread with your question.

Since you seem new to Linux, I recommend that you look in the tutorials section for general information about Linux Questions and other topics.

As a general answer, almost every command reads its input from the "standard input device," /dev/stdin, and sends its output to the "standard output device," /dev/stdout. (Any error messages are sent to the "standard error device," /dev/stderr.)

When you're using a terminal, you're "actually" running a program called the "shell" program. Almost always, that is a program called bash, although there are several other shell programs in common use. bash, and most of the other shell programs, use redirection operators (< << <<< > >>) to change the default to some other file. (The < operators change the input, the > ones the output.)

For example the command echo "Hello World!" would display Hello World on your terminal; echo "Hello World!" > example would create (or overwrite) a file called "example" (in your "current directory") containing that line. The cat command will copy a file (or a set of files) to the standard output.

Here's an example:
$ echo "Hello World"
Hello World
$ echo "Hello World" > example
$ cat example
Hello World
$ cat example example 
Hello World
Hello World
$ rm example
(The rm command, at the end, removes the "example" file.)
Old 10-13-2022, 06:17 AM   #32
LQ Newbie
Registered: Feb 2014
Posts: 7

Rep: Reputation: Disabled
how to Generate a specifically formatted string

How do i generate codes with a specific format like


where 1 is a number a is lower case and A is upper case? im using linux and like to use bash but pearl is just as good, i was trying to use crunch but that is way too long becuase of the aaaa crap that crunch spits out, any ideas?
Old 10-13-2022, 08:18 AM   #33
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,554

Rep: Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526Reputation: 2526

( This is a 2013 thread - jamied_uk appears to have noticed that after posting and started their own thread: )

Old 10-13-2022, 07:06 PM   #34
LQ Newbie
Registered: Feb 2014
Posts: 7

Rep: Reputation: Disabled
well done, have some Pi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Comparing Kernel Dmesgs: Remove Timing Info and Diff Side by Side LXer Syndicated Linux News 0 08-04-2010 08:31 PM
X11 and TEXT mode dual monitor side by side marius_c Linux - General 0 10-30-2009 11:30 AM
Installing SUSE 11.1 side by side with Ubuntu already installed on a USB drive jjchavez Linux - Laptop and Netbook 2 09-12-2009 02:39 PM
LXer: Top Linux photo managers side-by-side LXer Syndicated Linux News 0 12-14-2006 07:33 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration