awk processing / Shell Script Processing to remove columns text file
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
I would like to just get the filenames, so I need to filter this output . I tried the cut command like this :
but it does not work because of varying file sizes. like the last line of the output does not have a space in the beginning.
Also problematic is that there are spaces within the filenames..
So I need to remove the first 7 columns of every line in this output. that will just give me the full name of each file.
How do I do it ?
hi..
I have a file having record on in 1 line....
I want every 400 characters in a new line...
means in 1st line 1-400
in 2nd line - 401-800 etc
pl help. (12 Replies)
I'm trying to strip any garbage that may be at the end of my text file and that part is working. The problem only seems to be with the really long lines in the file. When the head command is executed I am directing the output to a new file. The new file always get a null in the 4096 position but... (2 Replies)
I need a script to process a huge single line text file:
The sample of the text is:
"forward_inline_item": "Inline", "options_region_Australia": "Australia", "server_event_err_msg": "There was an error attempting to save", "Token": "Yes", "family": "Family","pwd_login_tab": "Enter Your... (1 Reply)
I want to use an awk for the following scenario but not sure if it will work or not. I have two input file: F1 and F2
F1
02
05
08
F2
00
01
02
03
04
05
06
07
08
09
10 (1 Reply)
Hi Very much appreciate if somebody could give me a clue ..
I undestand that it could be done with awk but have a limited experience.
I have the following text in the file
1 909 YES NO
2 500 No NO
.
...
1 ... (8 Replies)
Hi, all
I have a file containing the following data:
name: PRODUCT_1
date: 2010-01-07
really_long_name: PRODUCT_ABCDEFG
I want to get the date (it is "2010-01-07" here), I could use the following code to do that:
awk... (6 Replies)
I dispose of two tab-delimited files (the first column is the primary key):
File 1 (there are multiple rows sharing the same key, I cannot merge them)
A 28,29,30,31
A 17,18,19
B 11,13,14,15
B 8,9File 2 (there is one only row beginning with a given key)
A 2,8,18,30,31
B ... (3 Replies)
P { margin-bottom: 0.25cm; line-height: 120%; }CODE.cjk { font-family: "WenQuanYi Micro Hei",monospace; }CODE.ctl { font-family: "Lohit Hindi",monospace; }A:link { } I'm trying to build an awk statement to print from a file (file1):
A 1,2,3 *
A 4,5,6 **
B 1
... (4 Replies)
Hi,my file is in this format
",
\"symbol\": \"Rbm38\"
} ]"
I want to convert it to a more user readable format
_id pubmed text symbol
67196 18667844 Overexpression of UBE2T in NIH3T3 cells significantly promoted colony formation in mouse cell cultures Ube2t
56190 21764855 ... (3 Replies)
Discussion started by: biofreek
3 Replies
LEARN ABOUT DEBIAN
smistrip
smistrip(1) SMI Tools smistrip(1)NAME
smistrip - extract MIB or PIB modules from text files, like RFCs or I-Ds
SYNOPSIS
smistrip [ -Vhn ] [ -d dir ] [ -m module ] [ file(s) ]
DESCRIPTION
The smistrip program is used to extract MIB and PIB module files from ASCII documents like RFCs or Internet Drafts. Modules are identified
by a starting ASN.1 DEFINITIONS clause and the matching END clause. The output is written to files named by the modules' names.
OPTIONS -V Show the smistrip version and exit.
-h Show a help text and exit.
-n Print only what would be extracted, but do not write any output file.
-d dir Write module file(s) to directory dir instead of the current working directory.
-m module
Extract only the module module instead of all modules found in the input file(s).
file(s)
The input text file(s) from which modules will be extracted. If no file is given, input is read from stdin.
Note that smistrip tries to be smart about locating module start and end, detecting page breaks and blank lines near page breaks. It also
tries to cut off blank prefixing columns from all lines of a modules. However, there might by documents that cannot be parsed correctly by
smistrip and probably produce incorrect output. You might consider to use smilint on every extracted module file to check its syntactical
correctness.
EXAMPLE
This example extracts only the module IPV6-MIB from the file rfc2465 and writes it to the directory /usr/local/tmp.
$ smistrip -d /usr/local/tmp -m IPV6-MIB rfc2465
SEE ALSO
The libsmi(3) project is documented at http://www.ibr.cs.tu-bs.de/projects/libsmi/.
smilint(1)AUTHOR
(C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
(C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
and contributions by many other people.
IBR August 10, 2004 smistrip(1)