10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
2. Shell Programming and Scripting
I have one column of 15000 lines and want to select randomly 5000 of them in five different times without replacement. I am aware that command 'shuf' and 'sort -R' could select randomly those lines but I am not sure how could I avoid the replacement of selection line. Does anyone have... (10 Replies)
Discussion started by: sajmar
3. Shell Programming and Scripting
I need to select lines from a txt file, I have got a line starting with ZMIO:MSISDN= and after a few line I have another line starting with 'MOBILE STATION ISDN NUMBER' and another one starting with 'VLR-ADDRESS' I need to copy these three lines as three different columns in a separate... (3 Replies)
Discussion started by: Tlcm sam
4. Shell Programming and Scripting
This is my code:
nb_lignes=`wc -l $1 | cut -d " " -f1`
for i in $(seq $nb_lignes)
m=`head $1 -n $i | tail -1`
Please how can i change it to get Get 20% of lines in File randomly to apply "command" on each line ? 20% or 40% or 60 % (it's a parameter)
Thank you. (15 Replies)
Discussion started by: chercheur857
5. Shell Programming and Scripting
What I have are two text files that I need to shuffle randomly, but I need the two files to be randomly shuffled the same way. I have heard of shuf but I do not know how to use it for two files. Maybe there is also an easy/simple awk command I do not know about that could handle this problem.
... (3 Replies)
Discussion started by: adrunknarwhal
6. Shell Programming and Scripting
i have a file in following format
1 32 3
4 6 4
4 45 1
45 4 61
54 66 4
5 65 51
56 65 1
12 32 85
now here the total number of lines are 8(they vary each time)
Now i want to select only those lines in which the values... (6 Replies)
Discussion started by: vaibhavkorde
7. Shell Programming and Scripting
Hi there, I have a text file with several colums separated by "|;#" I need to search the file extracting all columns starting with the value of "1" or "2" saving in a separate file just the first 7 columns of each row maching the criteria, with replacement of the saparators in the nearly created... (4 Replies)
Discussion started by: capnino
8. UNIX for Dummies Questions & Answers
I want to take the below data, and have it output to file only the STMC#/(IP address) and the "there are X number of updates to install" lines for each machine. I know it's easy, but Im a beginner in BASH stuff, my solution would probably take way too many lines to do something easy.Thanks!
... (5 Replies)
Discussion started by: glev2005
From some time, we have noticed that our ascii files have started corrupting due to the presence of some random control characters (^@, ^M, ^H, ^D). The characters appear randomly on any file after the process that creates the file finishes. If we rerun the process, the files re creates... (0 Replies)
Discussion started by: aakashahuja
10. Shell Programming and Scripting
on my desktop i am using the kde rotating desktop image option. this rotates images randomly every half hour. now, i would like to write an html file which will have an inline frame with some text, maybe system messages, or my friends live journal thati read alot, or unix.com! however, i dont want... (1 Reply)
Discussion started by: norsk hedensk
byobu-select-session(1) byobu byobu-select-session(1)
byobu-select-session - select and connect to a byobu session
byobu-select-session is an application that lists the available screen sessions running on the system, and prompts the user to select one.
The user also has the option to create a new Byobu session, or launch the default shell without Byobu.
If an invalid selection is chosen 3 times in a row, the user is connected to the youngest session.
By default, if only one session exists, the user is connected to that session, and if no sessions exist, a new session is created -- such
that there is no interactive prompt in the normal behavior. However, some users may choose to always be prompted, by touching the file
Note that BYOBU_CONFIG_DIR=$HOME/.byobu.
Named sessions that begin with a "." are "hidden" from byobu-select-session(1). This is useful, for instance, if you do not want a session
to be automatically selected at login. Example:
byobu -S .hidden
This manpage and the utility were written by Dustin Kirkland <firstname.lastname@example.org> for Ubuntu systems (but may be used by others). Permis-
sion is granted to copy, distribute and/or modify this document and the utility under the terms of the GNU General Public License, Version
3 published by the Free Software Foundation.
The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL on Debian/Ubuntu systems, or in
/usr/share/doc/fedora-release-*/GPL on Fedora systems, or on the web at http://www.gnu.org/licenses/gpl.txt.
byobu 12 Jan 2010 byobu-select-session(1)