Sponsored Content
Full Discussion: How can i split this.. :)?
Top Forums Shell Programming and Scripting How can i split this.. :)? Post 302989997 by Corona688 on Friday 20th of January 2017 11:55:41 AM
Old 01-20-2017
Quote:
Originally Posted by networksherlock
Thanks to everyone for all the support .. I do not know which shell I use.

Operating system Kali Linux (Debian) 2.6
Debian means you probably use DASH, I think. Which sadly makes cut one of the easier options.

Hopefully DASH will catch up to the 90's one of these days.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Split

Is there a split function in shell? (not awk) Coz i got a string as input and needed to split it. eg. input = "abc:123:def:www" I need to split it into 4 variable which contains abc,123,def,www. Is there anyway i can do tat? (1 Reply)
Discussion started by: AkumaTay
1 Replies

2. UNIX for Dummies Questions & Answers

Split a file with no pattern -- Split, Csplit, Awk

I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this. For example: split -l 3000000 filename.txt This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
10 Replies

3. Shell Programming and Scripting

help with split

I have a file that reads "#ID, First, P1(40), P2(40), P3(40)..." and I need to split this line up. I first did @scores = split(/,/, $input); But I need to split it up and get the the parentheses with numbers split up too, in order to add them together later. I know I need to do at least... (1 Reply)
Discussion started by: Hawks444
1 Replies

4. Shell Programming and Scripting

split -d

pls explain me about split -d option with syntax and an example.. thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies

5. Shell Programming and Scripting

split()

Hi there, Can someone tell me why the why the element of output is not the same order as the original data? Below is the value of column 11 of 2nd line,... (4 Replies)
Discussion started by: phoeberunner
4 Replies

6. Shell Programming and Scripting

Split using two delimiters

I'm trying to do a split using two delimiters. The first delimiter is ": " (or we could call it :\s). The second is "\n". How can or these delimiters so I can toss the values into an array without issue? I tried @array = split /:\s|\n/, $myvar; This doesn't seem to be working. Any an... (3 Replies)
Discussion started by: mrwatkin
3 Replies

7. Shell Programming and Scripting

Split

Hello people, I have a huge file of say 1 gb called A123.txt.. to get the word count, i do wc -l A123.txt This gives me a count of say 122898. Now what i do is, i divide this by 4 ie. 122888/4=30722 Now i copy the content as per the above count (30722) and give some name to... (6 Replies)
Discussion started by: j_panky
6 Replies

8. Shell Programming and Scripting

awk to split one field and print the last two fields within the split part.

Hello; I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
Discussion started by: yifangt
5 Replies

9. AIX

LV split...

Hi all, I have a strange problem that I have finally given up on and thought id start hitting the forums.. Any help is greatly appreiciated. I have recently attached two new physical disks to my system and created a new volume group which inlcude these. My aim, is to create a logical volume of... (1 Reply)
Discussion started by: Dansey
1 Replies

10. UNIX for Beginners Questions & Answers

Split and Rename Split Files

Hello, I need to split a file by number of records and rename each split file with actual filename pre-pended with 3 digit split number. What I have tried is the below command with 2 digit numeric value split -l 3 -d abc.txt F (# Will Produce split Files as F00 F01 F02) How to produce... (19 Replies)
Discussion started by: techedipro
19 Replies
VRMS(1) 						      General Commands Manual							   VRMS(1)

NAME
vrms - report of installed non-free software SYNOPSIS
vrms [OPTION] ... DESCRIPTION
This program began as an attempt to create a "virtual Richard M. Stallman" for Debian GNU/Linux. Thus the choice of name. This program analyzes the currently-installed package list on a Debian GNU/Linux system, and reports the non-free and contrib packages that are currently installed to stdout. In some cases, such as regarding documentation licensed under the GNU Free Documentation License with invariant sections, the opinions of Richard M. Stallman and the Debian project have diverged since this program was originally written. In such cases, this program follows the definition of freedom embodied in the Debian Free Software Guidelines. The packages in the non-free tree have restrictions on their use and/or distribution which cause them to fail to meet the terms of the Debian Free Software Guidelines included as part of the Debian Social Contract. However, some are sufficiently useful that their presence is often tolerated by Debian users despite their licensing. The packages in the contrib tree are themselves free software but have some dependency on non-free software for their use that make them worthy of reporting so that their use can also be consciously considered. Richard is the most vocal among us on the issue of software morality, and we agree with Richard that Debian users should have an easy way to know when they are running non-free software on their systems. This program is our attempt to fill that need. OPTIONS
All options can be prefixed with -- (eg: --noexplain) to turn them off. -q, --quiet Do nothing if there are no non-free packages installed. -e, --explain Give a brief explanation of why each package is non-free, if available. This is the default. -s, --sparse Just output a list of non-free packages. --reason-dir=DIR Use DIR as the reason directory, instead of /usr/share/vrms/reasons/. -h, --help Display help. -d, --debug Generate debugging information. FILES
/usr/share/vrms/reasons Default source of explanations for why packages are non-free. HISTORY
This program was written by Bdale Garbee and Bill Geddes for the Debian GNU/Linux system, in response to an open discussion with Richard Stallman about the issues surrounding the availability/desirability of the 'non-free' package tree in Debian. A Cute Little Hack VRMS(1)
All times are GMT -4. The time now is 11:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy