Search Results

Search: Posts Made By: hiptoss
34,819
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,080
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,461
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,732
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,...
3,981
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,956
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,016
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 06:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy