09-24-2010
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to remove every second and every third line from a file. My idea was to do it in two operations. First every third line, then every second line. The problem is that i can't find out how to do it. I tried to look for some sed oneliners, but couldn't find any.
Suggestions? (4 Replies)
Discussion started by: bistru
4 Replies
2. Shell Programming and Scripting
Hi,
I need some help in removing the header (first line) and the trailer (last line) in a give file...
The data file actually comes in EBCDIC format and I converted it into ASCII..
Now I need to strip off the first line and the last line..
I think we can use sed to do something like this:... (2 Replies)
Discussion started by: madhunk
2 Replies
3. Shell Programming and Scripting
hi sir,
i need help..how to remove last line of the each file
for example i have files a.txt ,b.txt and so on..i wanted to delete last list of each file..the patten not same for each file..any help?
thanks in advance (3 Replies)
Discussion started by: mani_um
3 Replies
4. UNIX for Dummies Questions & Answers
Hi all, i have a text file similar to belowA1
A2
A3
B1 ... .... *** # first occurance
B1 ... .... *** # second occurance
B1 ... .... *** # third occurance My desired output is B1 ... .... *** # second occurance
B1 ... .... *** # third occurance I want to remove the first line that is after... (3 Replies)
Discussion started by: new2ss
3 Replies
5. Shell Programming and Scripting
Hi ,guys. I have one question:
I want to write a script which removes a line with certain string from a file, for example
The name of the file is: "passwd", the contents of it is below:
*************************
...
brownj2:x:5000:
hynesp:x:5001:
leeb:x:5002
dioxna:x:5003
...
... (2 Replies)
Discussion started by: daikeyang
2 Replies
6. Shell Programming and Scripting
Is there an easy way to remove the first line of a file so that the file:
aaron
benjamin
cecilia
daniel
elliot
fernando
would become
benjamin
cecilia
daniel
elliot
fernando (4 Replies)
Discussion started by: locoroco
4 Replies
7. Shell Programming and Scripting
Hi, unix gurus,
I need to remove last line of the file.
anybody can help me
thanks in advance (7 Replies)
Discussion started by: ken002
7 Replies
8. Shell Programming and Scripting
I have a file output.txt. File looks like this
name1 10
name2 2
name3 5
I get a number n and I need to remove all lines which has number (after name) smaller or equal to n number.
After that I need to write lines from file and my output must be like this:
Output: 'name1 10'
Output: 'name2... (1 Reply)
Discussion started by: kubo12312
1 Replies
9. UNIX for Beginners Questions & Answers
How can I use bash to remove the first line of a file? (3 Replies)
Discussion started by: locoroco
3 Replies
LEARN ABOUT SUSE
platform::shell
platform::shell(n) Tcl Bundled Packages platform::shell(n)
__________________________________________________________________________________________________________________________________________________
NAME
platform::shell - System identification support code and utilities
SYNOPSIS
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
_________________________________________________________________
DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
COMMANDS
platform::shell::identify shell
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
KEYWORDS
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(n)