I have a quick problem that needs to be solved as soon as possible. I am using a script written by Reborg for doing a file manipulation on files. The script is in the posted forum with title "Script not working as desired". It was working fine but I have a strange situation where the the records in the file are exceeding the length of asingle line and are going intp 2 to 3 lines. This one is creating problem as the script given by Reborg just counts every row as a record where as it has to correctly take the end of the record if it exceeds more than one line. The file is "|" delimited. I want to accomodate that in the script to correctly count the record. Please help me with this script.
Once again the script is in the thread "script not working as desired"
Amazing.
Tiger Woods has won his 15th major championship and his 5th Masters, shaping and creating the best sports comeback story of our time.
Congratulations Tiger!!
Tiger's story should inspire everyone in the world to fight everyday of your life for what you love and what you believe in... (0 Replies)
Hello everybody!
I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see:
If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
i have two requirement
a file1 has field CNT=1000
i want to take count on file2 which can be like 2000
and replace in file1 so it becomes CNT=2000
a file1 has field TSTMP=2008-11-06-15.54.20.000000
i want to take the file creation date on file2 which can be like... (1 Reply)
Discussion started by: er_zeeshan05
1 Replies
4. Post Here to Contact Site Administrators and Moderators
sorry to ask this question(if u find difficulty):
what you (unix.com moderators) will did and doing now?
ie how u r selected as a "moderator" for unix.com
and is unix.com is what ur full time job or it is ur part time job like that..
and is this forum is what the most popular... (5 Replies)
please help me figure out how to do this
I wont lie, this is for a homework problem and I have searched on google for a long time and still can't figure out what to do.
here is the problem
So there's a folder let's say called "bare"
in it, there are 10 dirs with names from "part1" through... (2 Replies)
script(1) User Commands script(1)NAME
script - make record of a terminal session
SYNOPSIS
script [-a] [filename]
DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
OPTIONS
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
NOTES
script places everything that appears on the screen in filename, including prompts.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.11 30 Jan 2004 script(1)