Search Results

Search: Posts Made By: hiptoss
34,889
Posted By hiptoss
If I understand, you want to see the last 2...
If I understand, you want to see the last 2 lines? You can just use tail -2 instead of tail -1.
3,148
Posted By hiptoss
for i in `cat ptr.txt` do cat $i >>...
for i in `cat ptr.txt`
do
cat $i >> file_final
done
5,484
Posted By hiptoss
For the first problem, you may want to explicitly...
For the first problem, you may want to explicitly use single quotes around the sed substitution to see if that helps:


sed -i 's/SUBSTITUTE_ME/WITH_THIS/g' filename


With the second, and...
1,754
Posted By hiptoss
The simplest way would to add a simple grep that...
The simplest way would to add a simple grep that ignores lines starting with #... like so

cat $Parmdir/jobname.lst | grep -v ^# | while read line

The "^" character, in case you're not familiar,...
4,017
Posted By hiptoss
From what you've said so far, the solution seems...
From what you've said so far, the solution seems to be using grep and sed. I won't do the entire exercise for you, but here's an example:


(bill@vm) ~ > cat in
99999999999 maximum number(0)...
1,974
Posted By hiptoss
It looks like it's just transposing two...
It looks like it's just transposing two characters at a time of the number string, if it's even. If it's odd, just adding a "F" to the end of the number and then doing the transposing. Here's a...
5,076
Posted By hiptoss
You may want to check your $TERM environment...
You may want to check your $TERM environment variable. It may be set to something that the HPUX machine doesn't know. Before ssh'ing to your professor's machine, try this from the command line on...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy