Fully seconding my esteemed colleagues' advice that it definitely pays off to do a decent planning on data structures, algorithms, and desired outcomes instead of doing a later repair of accidents or errors, here's two hints on how to remove several cards from a fully shuffled full deck (assuming a recent bash shell):
Hi,
I would like to get some specific fields from one long line.
My line looks like
CcnCDRFile0-8535123473201007170536_2010-07-20_17:06:02:,,9963387265,,,,,00720141432,,+0.310,+79.255,+78.945,,,,1492,,,,0,... (1 Reply)
Hello to everybody i have problem the picking process falls and falls.
I dont now what the picking process do i believe that is a print server on a data base i dont know where to look.
Is a solaris 10 with korn sheell the process show this
ps -ef | grep picking
batch 18466 1 0... (5 Replies)
hi,
I'm searching for a perfect book to learn awk programming, i started with sed&awk book, but i think this book might be outdated as it is written way back in 97 and also it doesn't have many examples. So, I thought of getting some advice from the experts here. Pls suggest me some books.
... (1 Reply)
I have a list of file names. However in some instances I might have a "-" at the beginning of the filename or an "=".
For example I might have something like this
set Lst = "file1 file2 file3 -file4 file5="
I want to pick up the ones having "-" at the beginning or "=" and store them in... (22 Replies)
Hello Friends
I want to use sed command to pick a part of line. FOr example I only need the
/home_put1/bidds/myfo
part of following line
fish://ulavet@rits1.ula.com.tr/home_put1/bidds/myfo
How can I do this bu using sed command ? (2 Replies)
Hi,
I have a file which contains values in this format.
abc
cde
fgh
ijk
lmn
opq
rst
uvw
The user will pass the required parameter from the command line.
My requirement is that script should pick the values passed by the user and the next value in the next line.
Like if the user... (10 Replies)
Hi
I have a scenario:
I have a directory say DIR1 (no sub directories) and have few files in that directory as given below:
app-cnd-imp-20150820.txt
app-cxyzm-imp-20150820.txt
app-petco-imp-20150820.txt
app-mobility-imp-20150820.txt
app-mobility-imp-20150821.txt... (7 Replies)
Discussion started by: Saanvi1
7 Replies
LEARN ABOUT LINUX
shuf
SHUF(1) User Commands SHUF(1)NAME
shuf - generate random permutations
SYNOPSIS
shuf [OPTION]... [FILE]
shuf -e [OPTION]... [ARG]...
shuf -i LO-HI [OPTION]...
DESCRIPTION
Write a random permutation of the input lines to standard output.
Mandatory arguments to long options are mandatory for short options too.
-e, --echo
treat each ARG as an input line
-i, --input-range=LO-HI
treat each number LO through HI as an input line
-n, --head-count=COUNT
output at most COUNT lines
-o, --output=FILE
write result to FILE instead of standard output
--random-source=FILE
get random bytes from FILE
-z, --zero-terminated
end lines with 0 byte, not newline
--help display this help and exit
--version
output version information and exit
With no FILE, or when FILE is -, read standard input.
AUTHOR
Written by Paul Eggert.
REPORTING BUGS
Report shuf bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report shuf translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for shuf is maintained as a Texinfo manual. If the info and shuf programs are properly installed at your site, the
command
info coreutils 'shuf invocation'
should give you access to the complete manual.
GNU coreutils 8.5 February 2011 SHUF(1)