Hi all,
In unix shell, I want to get two strings ending with "." and starting with "." from a string "chan.txt"
For example, a string "chan.txt".
The first string is "chan"
The second string is "txt"
Yours
Wilson (1 Reply)
Hi all,
Iam trying to sort the contents of the file based on the position of the file.
Example:
$cat sample.txt
0101020060731 ## Header record
1c1 Berger Awc ANP20070201301 4000.50
1c2 Bose W G ANP20070201609 6000.70
1c2 Andy CK ANP20070201230 28000.00... (3 Replies)
I could really use some help with this issue. I'm having a lot of trouble getting my sed command to delete only the lines from my file that end with _;
I'm also supposed to carry the leading 'c' down to the next line. The commands I've tried either delete everything or nothing at all. Any help... (12 Replies)
Hi
I have a "set" command which ends with a "." (dot), for example:
set `grep "\<${pnum}\>" /tstmp/data.txt |sed 's/#//'` .
Can somebody help me to understand the purpose of this "set" and "." combination?
The problem is that this command does not produce the same result when run on AIX... (2 Replies)
I need to sort the following file by the rhdiskpower devices in the last column:
Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path
1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
hi,
please can I ask you for some help? I have data from 3D situation, x y z value
I'd like to use gnuplot to generate maps of the value in the planes z=0 to z=1 for example, my file looks
like
-0,012 0,0060 0,0 0,13972813076023477
-0,012 0,0064319163 4,2894483E-4 ... (1 Reply)
Hello All,
I have a scenario to read a file containing text like this:(say file name is Dummy.txt)
/home/abc/test1/ | file1
/home/abc/test2/ | file2
I used a variable to store the content from file like this (say for line1):
File=`head -1 Dummy.txt | cut -f1 -d "|"`
Dir=`head -1 Dummy.txt... (2 Replies)
I am trying to find out which files in a group of files have lines ending in r. What I have is this:
cat /tmp/*RECORDS| if grep r$>/dev/null; then echo "yes";else echo"no";fi
Records is more than one file. There are the following files
TEST-RECORDS
/volume/testing
/volume/programs
... (2 Replies)
Hi All,
I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file.
comm -3 < sort file_old < sort file_new > new_file
I am getting the below error:
-ksh: sort: cannot open
But if I do... (7 Replies)
Discussion started by: njny
7 Replies
LEARN ABOUT DEBIAN
pm-is-supported
PM-IS-SUPPORTED(1) pm-utils User Manual PM-IS-SUPPORTED(1)NAME
pm-is-supported - Test whether suspend or hibernate is supported.
SYNOPSIS
pm-is-supported [{--suspend | --hibernate | --suspend-hybrid}]
DESCRIPTION
This manual page documents briefly the pm-is-supported command.
The intended purpose of pm-is-supported is to find out which power management modes are supported by the system. hald(8) will call it to do
just that. (Note that UPower does not use this.)
OPTIONS --suspend
Test whether suspend is supported. Suspend is a state where most devices are shutdown, except for RAM. This state still draws power.
--hibernate
Test whether hibernate is supported. During hibernate the state of the system is saved to disk, the system is fully powered off.
--suspend-hybrid
Test whether hybrid-suspend is supported. Hybrid-suspend is the process where first the state of the system is saved to disk -- just
like with hibernate -- but instead of poweroff, the system goes in suspend state, which means it can wakeup quicker than for normal
hibernation. The advantage over suspend is that you can resume even if you run out of power. s2both is a hybrid-suspend implementation.
RETURN VALUE
The result of the test for a certain powermanagement state is defined by the following exit codes.
Code Diagnostic
0 State available.
1 State NOT available.
SEE ALSO hald(8), pm-suspend(8), s2both(8), UPower(7)AUTHOR
Tim Dijkstra <tim@famdijkstra.org>
Manpage author.
COPYRIGHT
Copyright (C) 2007 Tim Dijkstra
This manual page was originally written for the Debian(TM) system, and has been adopted by the pm-utils project.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software Foundation.
pm-is-supported Apr 18, 2007 PM-IS-SUPPORTED(1)