10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Although it seems easy, I've been stuck with this problem for a moment now and I can't figure out a way to get it done.
My problem is the following:
I have a file where each line is a sequence of IP addresses, example :
10.0.0.5 10.0.0.1 10.0.0.2... (5 Replies)
Discussion started by: MisterJellyBean
2. Shell Programming and Scripting
I have a file with four columns like
dmn10003t1 PF00001 PF00022 dmn12390t1
dmn10008t1 PF00069 PF00027 dmn9781t1
dmn10008t1 PF00068 PF00027 dmn9781t1
dmn10008t1 PF00069 PF00069 dmn9781t1
dmn12390t1 PF00069 PF00076 dmn10003t1
I want to create a new file by comparing the repeated word pairs... (2 Replies)
Discussion started by: sammy777
3. Shell Programming and Scripting
I have a file that contains the following:
How can I adjust the file so it looks like this:
I Think the '0' is something like a carriage return, I don't know. But how... (2 Replies)
Discussion started by: katled
4. UNIX for Dummies Questions & Answers
I have a huge file which has Lacs of lines. File system got full.
I want your guys help to suggest me a solution so that I can remove all lines from that file but not last 50,000 lines. I want solution which can remove lines from existing file so that I can have some space left with. (28 Replies)
Discussion started by: prashant2507198
5. Shell Programming and Scripting
I have a list of servers. I want to exclude servers that begin with and end with certain characters. Is there an easy command to do this?
I want to exclude any lines that start with "wvm" OR "uvm" AND end... (7 Replies)
Discussion started by: idiotboy
6. Shell Programming and Scripting
Using awk, print all the lines where field 8 is equal to x
I really did try, but this awk thing is really hard to figure out.
"California","Los Angeles","2011-11-03","x","","","",""... (2 Replies)
Discussion started by: charles33
7. Shell Programming and Scripting
I have a file datafile.txt that consists of 1732 Line,
I want to split the file into equal number of lines with 10 file.
(The last file can have 2 line extra to match 1732)
Please advise how to do that,
Thanks in advance.. (2 Replies)
Discussion started by: rveri
8. Shell Programming and Scripting
A small question
I have a test.txt file
I have contents as:
How do I remove the line with :
my output should be
d:hotmail (5 Replies)
Discussion started by: aronmelon
9. Shell Programming and Scripting
i'm trying to remove a number of lines from a large file using the following command:
sed '1,5000d' oldfile > newfile
Somehow the lines in the old file are not deleted...
Am I doing this wrongly? Any suggestions? :confused:
wee (10 Replies)
Discussion started by: lweegp
10. UNIX for Dummies Questions & Answers
I have a text file with several entries like below:
I know there is a way to use vi to remove only the personname.domain.com line. Can someone help? I believe that it involves /s/g/ something...I just can't remember the exact syntax.
Thanks (2 Replies)
Discussion started by: kjbaumann
TABS(1) BSD General Commands Manual TABS(1)
tabs -- set terminal tabs
tabs [-n | -a | -a2 | -c | -c2 | -c3 | -f | -p | -s | -u] [+m[n]] [-T type]
tabs [-T type] [+[n]] n1[,n2,...]
The tabs utility displays a series of characters that clear the hardware terminal tab settings then initialises tab stops at specified posi-
tions, and optionally adjusts the margin.
In the first synopsis form, the tab stops set depend on the command line options used, and may be one of the predefined formats or at regular
In the second synopsis form, tab stops are set at positions n1, n2, etc. If a position is preceded by a '+', it is relative to the previous
position set. No more than 20 positions may be specified.
If no tab stops are specified, the ``standard'' UNIX tab width of 8 is used.
The options are as follows:
-n Set a tab stop every n columns. If n is 0, the tab stops are cleared but no new ones are set.
-a Assembler format (columns 1, 10, 16, 36, 72).
-a2 Assembler format (columns 1, 10, 16, 40, 72).
-c COBOL normal format (columns 1, 8, 12, 16, 20, 55)
-c2 COBOL compact format (columns 1, 6, 10, 14, 49)
-c3 COBOL compact format (columns 1, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 67).
-f FORTRAN format (columns 1, 7, 11, 15, 19, 23).
-p PL/1 format (columns 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61).
-s SNOBOL format (columns 1, 10, 55).
-u Assembler format (columns 1, 12, 20, 44).
Set an n character left margin, or 10 if n is omitted.
Output escape sequence for the terminal type type.
The LANG, LC_ALL, LC_CTYPE and TERM environment variables affect the execution of tabs as described in environ(7).
The -T option overrides the setting of the TERM environment variable. If neither TERM nor the -T option are present, tabs will fail.
The tabs utility exits 0 on success, and >0 if an error occurs.
expand(1), stty(1), tput(1), unexpand(1), termcap(5)
The tabs utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
A tabs utility appeared in PWB UNIX. This implementation was introduced in FreeBSD 5.0.
The current termcap(5) database does not define the 'ML' (set left soft margin) capability for any terminals.
May 20, 2002 BSD