03-14-2011
reply
Hi Panyam,
We have huge files to work upon and looking for a faster and better way other than converting each character to its ascii value.Also, the record layout changes when we try your command which would give incorrect position. To mention all the files will consist of fixed length records
Is there a way where we can run grep using the ascii value of this special character directly? Is there any better way to do this?We will just need to locate this special character and find the number of occurrences,number of records its impacting and the fields impacted based on the position.Any help on this is highly appreciated.
Thanks for replying.
Last edited by devina; 03-14-2011 at 09:37 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies
2. HP-UX
Hi,
I'm seeing the error vmunix: file: table is full in syslog.log.
Although changing the value of the kernel parameter nfile would make this error go away, how would I identify which process/application in the server is triggering this error? The server is a HP-UX B.11.11.
Thanks in advance! (1 Reply)
Discussion started by: enchogas
1 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
Hi,
I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good files into a tar.gz file (tar cvfz good.tar.gz *.goog.out )
Is there a way I can automate this... (4 Replies)
Discussion started by: rockytodd
4 Replies
5. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
6. Red Hat
Sometimes idle process(%98) and load average(98.32) are very high. When its happen I check with "top" command and I kill visible process. After killing machine status already same. How can I check high process using ps command.
I want to find that which processes are using more than %50 CPU or... (5 Replies)
Discussion started by: getrue
5 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
This is a script I got off the web for transferring Safari's "reading list" to the Pocket app. I ran it in terminal with the command bash exportsafarireadinglist.sh and got syntax error: unexpected end of file. Thanks for any help! The code:
#!/bin/bash
# Script to export Safari's reading... (2 Replies)
Discussion started by: kdog126
2 Replies
9. Shell Programming and Scripting
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
Discussion started by: manikandan23
13 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT OSF1
strsetup
strsetup(8) System Manager's Manual strsetup(8)
NAME
strsetup - STREAMS setup and information command
SYNOPSIS
/usr/sbin/strsetup [-cdfi]
OPTIONS
Lists the current kernel configuration of STREAMS modules and devices. Any user can run the strsetup -c command. Deletes all character
special files listed in the configuration file that do not map to currently configured STREAMS drivers. Specifies a file that contains the
specifications to build third party or installation-specific character files for STREAMS-based drivers. It uses the same specification
format as the strsetup.conf file. Creates the STREAMS-based special files appropriate for your kernel configuration. By default the
strsetup command uses the information in the /etc/strsetup.conf file to build the STREAMS-based special files with the correct names, file
permissions, and minor numbers. If the strsetup.conf file does not exist, the strsetup command defaults to creating clone character spe-
cial files.
The strsetup -i command is run automatically at boot time.
DESCRIPTION
The strsetup command displays the setup of your STREAMS modules and creates the appropriate character special files for the STREAMS-based
drivers in your kernel configuration.
FILES
Default directory in which the -i option creates the pseudodevices
SEE ALSO
Commands: netsetup(8)
Files: strsetup.conf(4)
System Administration
strsetup(8)