I haven't done python since 2013 but here goes...
Results on OSX 10.7.5, default bash terminal running python 2.7.x.
EDIT:
Added "Q" and "" for fullness...
Last edited by wisecracker; 04-04-2016 at 01:34 PM..
Reason: See above.
This User Gave Thanks to wisecracker For This Post:
I need only those records which has $2 equal to "DEF" independent of case (i.e upper or lower)
nawk -F"," '$2 ~ //{print $0}' file
This returns 3rd record also which i dont want
I tried this but this doesnt work as expected.
nawk -F"," '$2 == ""{print $0}' file
i dont... (3 Replies)
Hi,
I am new to unix shell programming.
I want to write a shell script for a functionality existing in mainframe system.
I have one file as below as input
123456
&__987
&12yuq
abcdef
_ referes to blank
condition:whenever the input file is having &__ ,it should be replaced... (4 Replies)
Sorry Guys for not being able to explain in one of my earlier post.
I am now putting my requirement with the input file and desired output file.
In the below input file -
Transaction code is at position 31:40.
Business code is from position 318:321
TSCM00000005837 ... (7 Replies)
Hello,
I have File1 in a directory A, a File2 in a directory B.
If the File2 is not empty
Then I have to move File1 from directory A to a directory archive
Else no action.
Is it possible to do this from one command line?
Thank you in advance for your answers.
Madi (2 Replies)
I have a file full of coordinates of the form:
37.68899917602539 58.07500076293945 57.79100036621094
The numbers don't always have the same number of decimal points. I need to reduce the decimal points of all the numbers (there are 128 rows of 3 numbers) to 2.
I have tried to do this... (2 Replies)
Hi, I'm new to python, and I work on a little program fpr my rapsberry pi.
This scenario here is a little Midi sysex app for my Roland D-50 Synthesizer.
With an usb attached number keypad I can type numbers from 0 to 9 and the referenced Midi sysex file would be send out to my Roland D-50... (1 Reply)
Hello everyone,
I have just started python, and there is something that escapes me. I don't understand why my little script doesn't work.
When I do, it work:
my_string = "bonjour"
if len(my_string) < "6":
print(my_string + " < 6")
else:
print(my_string + " > 6")
... (2 Replies)
In the awk below I am trying to add a | that will adjust $2 in the ouput by adding +1 if the original value from file that was used in $3 had a - in it. Line 3 of file is an example of this. In my current awk I just subtract one but I am not sure how to only apply this to those values without a -.... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT ULTRIX
scamp
scamp(8) System Manager's Manual scamp(8)Name
scamp - System Configuration and Management Program
Syntax
/usr/etc/scamp
Description
The utility is a menu-driven program that helps you set up and manage your system. scamp allows you to manage user accounts and software
subsets, and to perform basic system management tasks such as setting the system date and time, and rebooting the system.
uses the directory to store all of it's files.
Restrictions
This utility is installed in the directory. To have access to while in single-user mode the partition must be mounted.
Examples
When is invoked a page of welcome text first displayed. After you hit a carriage return the Main Menu is displayed.
*****************************
ULTRIX SCAMP MAIN MENU
*****************************
1 - User Account Management
2 - Network Setup Information
3 - Terminal Setup
4 - Modem Setup
5 - Printer Setup
6 - Install/Remove Software Subsets
7 - License Management Facility - LMF
8 - System Management Services
0 - Exit
Enter your choice:
At the 'Enter your choice:' prompt you enter the number that is beside the task you would like to perform. To enter a Product Authoriza-
tion Key (PAK) you use the 'License Management Facility - LMF' menu item, so you would enter a 7 at the prompt.
Each of the Main Menu items have one or more screenfulls of information that could be displayed. To exit to the previous screen, or to
exit the utility when at Main Menu, enter a 0 at the prompt.
FilesSee Also
Guide to SCAMP
scamp(8)